Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: orion5x: ts78xx: Remove unneeded variable ret

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>

authored by

Xu Wang and committed by
Gregory CLEMENT
cf8dcf27 49d5b568

+1 -2
+1 -2
arch/arm/mach-orion5x/ts78xx-setup.c
··· 398 398 399 399 static int ts78xx_fpga_unload_devices(void) 400 400 { 401 - int ret = 0; 402 401 403 402 if (ts78xx_fpga.supports.ts_rtc.present == 1) 404 403 ts78xx_ts_rtc_unload(); ··· 406 407 if (ts78xx_fpga.supports.ts_rng.present == 1) 407 408 ts78xx_ts_rng_unload(); 408 409 409 - return ret; 410 + return 0; 410 411 } 411 412 412 413 static int ts78xx_fpga_load(void)