summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorGuo Zhengkui <guozhengkui@vivo.com>2022-05-05 05:01:14 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-05-12 18:06:50 +0200
commitdd089d485849792c540d34f4be30bedade5ca791 (patch)
tree4508217c5436b6c7f1a19c9e166a523b6cb40f2c /arch/mips
parentMIPS: Use NOKPROBE_SYMBOL() instead of __kprobes annotation (diff)
downloadlinux-dd089d485849792c540d34f4be30bedade5ca791.tar.xz
linux-dd089d485849792c540d34f4be30bedade5ca791.zip
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>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/sibyte/bcm1480/setup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips/sibyte/bcm1480/setup.c b/arch/mips/sibyte/bcm1480/setup.c
index 6f34b871b08e..e3e807046a9c 100644
--- a/arch/mips/sibyte/bcm1480/setup.c
+++ b/arch/mips/sibyte/bcm1480/setup.c
@@ -34,8 +34,6 @@ static char *pass_str;
static int __init setup_bcm1x80_bcm1x55(void)
{
- int ret = 0;
-
switch (soc_pass) {
case K_SYS_REVISION_BCM1480_S0:
periph_rev = 1;
@@ -64,7 +62,7 @@ static int __init setup_bcm1x80_bcm1x55(void)
break;
}
- return ret;
+ return 0;
}
/* Setup code likely to be common to all SiByte platforms */