Commit 1037dc0a2bccfd615be37e52d3322ac622d25b59
Committed by
Stefano Babic
1 parent
8aa42441c8
Exists in
master
and in
50 other branches
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>
Showing 1 changed file with 2 additions and 5 deletions Side-by-side Diff
board/freescale/mx6qarm2/mx6qarm2.c
... | ... | @@ -186,13 +186,10 @@ |
186 | 186 | int board_eth_init(bd_t *bis) |
187 | 187 | { |
188 | 188 | struct eth_device *dev; |
189 | - int ret; | |
189 | + int ret = cpu_eth_init(bis); | |
190 | 190 | |
191 | - ret = cpu_eth_init(bis); | |
192 | - if (ret) { | |
193 | - printf("FEC MXC: %s:failed\n", __func__); | |
191 | + if (ret) | |
194 | 192 | return ret; |
195 | - } | |
196 | 193 | |
197 | 194 | dev = eth_get_dev_by_name("FEC"); |
198 | 195 | if (!dev) { |