From: Stefan Roese Date: Tue, 4 Mar 2008 16:39:25 +0000 (+0100) Subject: net: Print error message upon net usage when no ethernet-interface is found X-Git-Tag: v1.3.2~14^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e85e2fa85ec09a6fac2846d1d881d8737e2bbda9;p=u-boot net: Print error message upon net usage when no ethernet-interface is found This patch fixes a problem seen on PPC4xx boards, when no MAC address is defined. Then no ethernet interface is available but a simple "tftp" command will return without any error message which is quite confusing. Signed-off-by: Stefan Roese --- diff --git a/net/eth.c b/net/eth.c index 62297abba4..16a6dcbd8c 100644 --- a/net/eth.c +++ b/net/eth.c @@ -441,8 +441,10 @@ int eth_init(bd_t *bis) { struct eth_device* old_current; - if (!eth_current) + if (!eth_current) { + puts ("No ethernet found.\n"); return -1; + } old_current = eth_current; do {