arm: zynq: Return value from fdtdec_setup_memory_banksize directly
authorMichal Simek <michal.simek@xilinx.com>
Fri, 3 Nov 2017 14:25:51 +0000 (15:25 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 28 Nov 2017 15:08:44 +0000 (16:08 +0100)
There is no reason not to return return value from above function.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynq/board.c
board/xilinx/zynqmp/zynqmp.c

index 90ef542458a9c7a19e64be1c031282fe5f5cf3f6..871e9dcba07fd92c0fcfbc674cacb21af56d3bb7 100644 (file)
@@ -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)
index d17868b0c2b7cec23997f89982008d6a208fb3cc..a036ed6a35d376e9f6ef1fa4277c87ccd02fda08 100644 (file)
@@ -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)