summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-01-04 17:36:28 -0200
committerStefano Babic <sbabic@denx.de>2014-01-13 11:52:27 +0100
commit14da759fb5338ae2ae5550cce1d596794262f455 (patch)
treea5c11ba66d78a09b12e881f374c7868eeac6bd6d
parent4b0561d84198f8d696fd51cfc27aeac8c7482a8c (diff)
downloadu-boot-imx-14da759fb5338ae2ae5550cce1d596794262f455.zip
u-boot-imx-14da759fb5338ae2ae5550cce1d596794262f455.tar.gz
u-boot-imx-14da759fb5338ae2ae5550cce1d596794262f455.tar.bz2
wandboard: Return from cpu_eth_init() directly
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>
-rw-r--r--board/wandboard/wandboard.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index 0043bc6..72e9bb2 100644
--- 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)