All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/6] wandboard: Return from cpu_eth_init() directly
@ 2014-01-04 16:31 Fabio Estevam
  2014-01-04 16:31 ` [U-Boot] [PATCH 2/6] titanium: " Fabio Estevam
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Fabio Estevam @ 2014-01-04 16:31 UTC (permalink / raw)
  To: u-boot

From: Fabio Estevam <fabio.estevam@freescale.com>

There is no need to print an error message when cpu_eth_init() fails because
net/eth.c already prints it.

In order to simplify the code, just return the value from cpu_eth_init(bis)
directly.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/wandboard/wandboard.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index 0043bc6..72e9bb2 100644e
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -257,15 +257,9 @@ static void setup_display(void)
 
 int board_eth_init(bd_t *bis)
 {
-	int ret;
-
 	setup_iomux_enet();
 
-	ret = cpu_eth_init(bis);
-	if (ret)
-		printf("FEC MXC: %s:failed\n", __func__);
-
-	return ret;
+	return cpu_eth_init(bis);
 }
 
 int board_early_init_f(void)
-- 
1.8.1.2

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

end of thread, other threads:[~2014-01-04 19:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-04 16:31 [U-Boot] [PATCH 1/6] wandboard: Return from cpu_eth_init() directly Fabio Estevam
2014-01-04 16:31 ` [U-Boot] [PATCH 2/6] titanium: " Fabio Estevam
2014-01-04 16:31 ` [U-Boot] [PATCH 3/6] mx6qarm2: Remove unneeded error message when cpu_eth_init() fails Fabio Estevam
2014-01-04 19:26   ` Wolfgang Denk
2014-01-04 19:39     ` Fabio Estevam
2014-01-04 16:31 ` [U-Boot] [PATCH 4/6] mx6qsabreauto: Return from cpu_eth_init() directly Fabio Estevam
2014-01-04 16:31 ` [U-Boot] [PATCH 5/6] mx6sabresd: " Fabio Estevam
2014-01-04 16:31 ` [U-Boot] [PATCH 6/6] mx6slevk: " Fabio Estevam

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.