ARM: orion5x: ts78xx: Remove unneeded variable ret
authorXu Wang <vulab@iscas.ac.cn>
Mon, 24 Feb 2020 14:24:47 +0000 (15:24 +0100)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Sun, 8 Mar 2020 11:42:07 +0000 (12:42 +0100)
Remove unneeded variable ret used to store return value,just return 0.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm/mach-orion5x/ts78xx-setup.c

index fda9b75..a39764f 100644 (file)
@@ -398,7 +398,6 @@ static int ts78xx_fpga_load_devices(void)
 
 static int ts78xx_fpga_unload_devices(void)
 {
-       int ret = 0;
 
        if (ts78xx_fpga.supports.ts_rtc.present == 1)
                ts78xx_ts_rtc_unload();
@@ -407,7 +406,7 @@ static int ts78xx_fpga_unload_devices(void)
        if (ts78xx_fpga.supports.ts_rng.present == 1)
                ts78xx_ts_rng_unload();
 
-       return ret;
+       return 0;
 }
 
 static int ts78xx_fpga_load(void)