All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/5] arm: zynq: Return value from fdtdec_setup_memory_banksize directly
@ 2017-11-06 11:45 Michal Simek
  2017-11-06 11:45 ` [U-Boot] [PATCH 2/5] arm: zynq: Enable FPGA/FPGA_XILINX via Kconfig Michal Simek
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Michal Simek @ 2017-11-06 11:45 UTC (permalink / raw)
  To: u-boot

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    | 4 +---
 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 90ef542458a9..871e9dcba07f 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 d17868b0c2b7..a036ed6a35d3 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)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-11-24 22:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06 11:45 [U-Boot] [PATCH 1/5] arm: zynq: Return value from fdtdec_setup_memory_banksize directly Michal Simek
2017-11-06 11:45 ` [U-Boot] [PATCH 2/5] arm: zynq: Enable FPGA/FPGA_XILINX via Kconfig Michal Simek
2017-11-06 11:45 ` [U-Boot] [PATCH 3/5] arm: zynq: Move ZYNQ_SERIAL to Kconfig Michal Simek
2017-11-20 15:38   ` Simon Glass
2017-11-06 11:45 ` [U-Boot] [PATCH 4/5] arm: zynq: Sort dts names Michal Simek
2017-11-20 15:38   ` Simon Glass
2017-11-06 11:45 ` [U-Boot] [PATCH 5/5] arm: zynq: Add mini u-boot configuration for zynq Michal Simek
2017-11-20 15:38   ` Simon Glass
2017-11-21  7:23     ` Michal Simek
2017-11-24 22:36       ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.