mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-19 05:04:35 +00:00
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>
This commit is contained in:
parent
491fb6dea9
commit
e85e2fa85e
1 changed files with 3 additions and 1 deletions
|
@ -441,8 +441,10 @@ int eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
struct eth_device* old_current;
|
struct eth_device* old_current;
|
||||||
|
|
||||||
if (!eth_current)
|
if (!eth_current) {
|
||||||
|
puts ("No ethernet found.\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
old_current = eth_current;
|
old_current = eth_current;
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Add table
Reference in a new issue