Skip to content
Snippets Groups Projects
Commit 6bc11388 authored by Stefan Roese's avatar Stefan Roese Committed by Wolfgang Denk
Browse files

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: default avatarStefan Roese <sr@denx.de>
parent a30a549a
No related branches found
No related tags found
No related merge requests found
...@@ -441,8 +441,10 @@ int eth_init(bd_t *bis) ...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment