Skip to contentSkip to conversation

ARM: orion5x: ts78xx: Remove unneeded variable ret

PATCH In review Xu Wang 2 participants 2 messages Feb 21, 2020 – Feb 24, 2020

Subsystems (4)
lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 ARM: orion5x: ts78xx: Remove unneeded variable ret

Remove unneeded variable ret used to store return value,just return 0.

---
 arch/arm/mach-orion5x/ts78xx-setup.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-orion5x/ts78xx-setup.c +1 -2
index fda9b75c3a33..a39764faf2a0 100644
@@ -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)
Signature · 1 line
2.17.1