Skip to content

Commit dd089d4

Browse files
Guo Zhengkuitsbogend
authored andcommitted
MIPS: Sibyte: remove unnecessary return variable
Fix the following coccicheck warning: arch/mips/sibyte/bcm1480/setup.c:37:5-8: Unneeded variable: "ret". Return "0" on line 67. Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent f5e2d81 commit dd089d4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

arch/mips/sibyte/bcm1480/setup.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ static char *pass_str;
3434

3535
static int __init setup_bcm1x80_bcm1x55(void)
3636
{
37-
int ret = 0;
38-
3937
switch (soc_pass) {
4038
case K_SYS_REVISION_BCM1480_S0:
4139
periph_rev = 1;
@@ -64,7 +62,7 @@ static int __init setup_bcm1x80_bcm1x55(void)
6462
break;
6563
}
6664

67-
return ret;
65+
return 0;
6866
}
6967

7068
/* Setup code likely to be common to all SiByte platforms */

0 commit comments

Comments
 (0)