diff options
author | Michal Simek <michal.simek@xilinx.com> | 2017-11-03 15:25:51 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-11-28 16:08:44 +0100 |
commit | da3f003be18fb6364039cd7ceef9457cfa832149 (patch) | |
tree | 2e965607835707b5df492e080f78ab73abaa7baa /board/xilinx | |
parent | bc133e80ae1387f75104f2ad2c92eb71e6f4184d (diff) | |
download | u-boot-da3f003be18fb6364039cd7ceef9457cfa832149.tar.gz u-boot-da3f003be18fb6364039cd7ceef9457cfa832149.tar.xz u-boot-da3f003be18fb6364039cd7ceef9457cfa832149.zip |
arm: zynq: Return value from fdtdec_setup_memory_banksize directly
There is no reason not to return return value from above function.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx')
-rw-r--r-- | board/xilinx/zynq/board.c | 4 | ||||
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 90ef542458..871e9dcba0 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -132,9 +132,7 @@ int zynq_board_read_rom_ethaddr(unsigned char *ethaddr) #if !defined(CONFIG_SYS_SDRAM_BASE) && !defined(CONFIG_SYS_SDRAM_SIZE) int dram_init_banksize(void) { - fdtdec_setup_memory_banksize(); - - return 0; + return fdtdec_setup_memory_banksize(); } int dram_init(void) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index d17868b0c2..a036ed6a35 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -226,9 +226,7 @@ int zynq_board_read_rom_ethaddr(unsigned char *ethaddr) #if !defined(CONFIG_SYS_SDRAM_BASE) && !defined(CONFIG_SYS_SDRAM_SIZE) int dram_init_banksize(void) { - fdtdec_setup_memory_banksize(); - - return 0; + return fdtdec_setup_memory_banksize(); } int dram_init(void) |