diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-01-04 23:36:30 +0400 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-01-13 14:52:27 +0400 |
commit | 1037dc0a2bccfd615be37e52d3322ac622d25b59 (patch) | |
tree | 60cffdb958a64e4f5c5d87f52b4d18f4da5f8689 /board/freescale/mx6qarm2/mx6qarm2.c | |
parent | 8aa42441c889ebb5fbb612d56df3fb2eb3eefcf2 (diff) | |
download | u-boot-1037dc0a2bccfd615be37e52d3322ac622d25b59.tar.xz |
mx6qarm2: Remove unneeded error message when cpu_eth_init() fails
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@freescale.com>
Diffstat (limited to 'board/freescale/mx6qarm2/mx6qarm2.c')
-rw-r--r-- | board/freescale/mx6qarm2/mx6qarm2.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c index e063407840..6c51f3a182 100644 --- a/board/freescale/mx6qarm2/mx6qarm2.c +++ b/board/freescale/mx6qarm2/mx6qarm2.c @@ -186,13 +186,10 @@ int fecmxc_mii_postcall(int phy) int board_eth_init(bd_t *bis) { struct eth_device *dev; - int ret; + int ret = cpu_eth_init(bis); - ret = cpu_eth_init(bis); - if (ret) { - printf("FEC MXC: %s:failed\n", __func__); + if (ret) return ret; - } dev = eth_get_dev_by_name("FEC"); if (!dev) { |