diff options
author | Stefan Roese <sr@denx.de> | 2008-03-04 17:40:41 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-03-05 00:18:49 +0100 |
commit | 6bc113886d7d316df1a4e459bec8baf027518551 (patch) | |
tree | 1c6196f76a13863967f8bbee00278355d84d04e6 /net/eth.c | |
parent | a30a549a3553032d809e0356306b62de0b125901 (diff) | |
download | u-boot-imx-6bc113886d7d316df1a4e459bec8baf027518551.zip u-boot-imx-6bc113886d7d316df1a4e459bec8baf027518551.tar.gz u-boot-imx-6bc113886d7d316df1a4e459bec8baf027518551.tar.bz2 |
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 <sr@denx.de>
Diffstat (limited to 'net/eth.c')
-rw-r--r-- | net/eth.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 { |