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>
This commit is contained in:
Guo Zhengkui 2022-05-05 11:01:14 +08:00 коммит произвёл Thomas Bogendoerfer
Родитель f5e2d8186d
Коммит dd089d4858
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -34,8 +34,6 @@ static char *pass_str;
static int __init setup_bcm1x80_bcm1x55(void) static int __init setup_bcm1x80_bcm1x55(void)
{ {
int ret = 0;
switch (soc_pass) { switch (soc_pass) {
case K_SYS_REVISION_BCM1480_S0: case K_SYS_REVISION_BCM1480_S0:
periph_rev = 1; periph_rev = 1;
@ -64,7 +62,7 @@ static int __init setup_bcm1x80_bcm1x55(void)
break; break;
} }
return ret; return 0;
} }
/* Setup code likely to be common to all SiByte platforms */ /* Setup code likely to be common to all SiByte platforms */