diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-06 22:17:39 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-23 17:53:54 -0400 |
commit | a4ca3799c2edf2b805f804a07d234a9e5eaae60f (patch) | |
tree | db22263ba5173bafedd9cca35307e1d99ef96df2 /drivers/power/axp809.c | |
parent | 63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4 (diff) |
drivers: squash lines for immediate return
Remove unneeded variables and assignments.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/power/axp809.c')
-rw-r--r-- | drivers/power/axp809.c | 8 |
1 files changed, 1 insertions, 7 deletions
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[]) |