提交 e85e2fa8 编写于 作者: S Stefan Roese

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: NStefan Roese <sr@denx.de>
上级 491fb6de
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册