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>
{
struct eth_device* old_current;
- if (!eth_current)
+ if (!eth_current) {
+ puts ("No ethernet found.\n");
return -1;
+ }
old_current = eth_current;
do {