From a4ca3799c2edf2b805f804a07d234a9e5eaae60f Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 6 Sep 2016 22:17:39 +0900 Subject: drivers: squash lines for immediate return Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada --- drivers/power/axp809.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'drivers/power/axp809.c') diff --git a/drivers/power/axp809.c b/drivers/power/axp809.c index c8b76cf9b7..c5b608d2f0 100644 --- a/drivers/power/axp809.c +++ b/drivers/power/axp809.c @@ -217,13 +217,7 @@ int axp_set_sw(bool on) int axp_init(void) { - int ret; - - ret = pmic_bus_init(); - if (ret) - return ret; - - return 0; + return pmic_bus_init(); } int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) -- cgit