[U-Boot] [PATCH v2 6/7] power: squash lines for immediate return
Masahiro Yamada
yamada.masahiro at socionext.com
Mon Sep 5 15:38:42 CEST 2016
Currently, this function is just a wrapper of pmic_bus_init().
Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---
drivers/power/axp809.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/power/axp809.c b/drivers/power/axp809.c
index c8b76cf..c5b608d 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[])
--
1.9.1
More information about the U-Boot
mailing list