[U-Boot] [PATCH 3/6] mx6qarm2: Remove unneeded error message when cpu_eth_init() fails

Fabio Estevam festevam at gmail.com
Sat Jan 4 17:31:34 CET 2014


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

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

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 board/freescale/mx6qarm2/mx6qarm2.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c
index e063407..79cd3fc 100644
--- a/board/freescale/mx6qarm2/mx6qarm2.c
+++ b/board/freescale/mx6qarm2/mx6qarm2.c
@@ -186,13 +186,9 @@ int fecmxc_mii_postcall(int phy)
 int board_eth_init(bd_t *bis)
 {
 	struct eth_device *dev;
-	int ret;
-
-	ret = cpu_eth_init(bis);
-	if (ret) {
-		printf("FEC MXC: %s:failed\n", __func__);
+	int ret = cpu_eth_init(bis);
+	if (ret)
 		return ret;
-	}
 
 	dev = eth_get_dev_by_name("FEC");
 	if (!dev) {
-- 
1.8.1.2



More information about the U-Boot mailing list