[U-Boot] [PATCH v2 5/7] samsung: squash lines for immediate return
Masahiro Yamada
yamada.masahiro at socionext.com
Mon Sep 5 15:38:41 CEST 2016
Currently, this function is just a wrapper of pmic_init().
Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---
board/samsung/goni/goni.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index 1600568..e8329bb 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -45,17 +45,11 @@ void i2c_init_board(void)
int power_init_board(void)
{
- int ret;
-
/*
* For PMIC the I2C bus is named as I2C5, but it is connected
* to logical I2C adapter 0
*/
- ret = pmic_init(I2C_0);
- if (ret)
- return ret;
-
- return 0;
+ return pmic_init(I2C_0);
}
int dram_init(void)
--
1.9.1
More information about the U-Boot
mailing list