diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-06 22:17:38 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-23 17:53:53 -0400 |
commit | 63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4 (patch) | |
tree | 3c8e952ed36bd39aa138f5edf476e17d73fbea63 /board/samsung | |
parent | 7dc0789579b17859c61c085e4562b7985f05cc4d (diff) | |
download | u-boot-63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4.tar.gz u-boot-63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4.tar.bz2 u-boot-63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4.zip |
arch, board: squash lines for immediate return
Remove unneeded variables and assignments.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Diffstat (limited to 'board/samsung')
-rw-r--r-- | board/samsung/goni/goni.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index 1600568193..e8329bba6c 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) |