From 0b97ab144f3ec4e3ae13e8c13e7296b2f89481a8 Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 19 Jun 2003 23:58:30 +0000 Subject: * Patch by Richard Woodruff, 19 June 03: - Fixed smc91c111 driver to sync with the u-boot environment (driver/smc91c111.c). - Added eth_init error return check in NetLoop (net/net.c). --- net/net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/net.c b/net/net.c index 4758595..3081829 100644 --- a/net/net.c +++ b/net/net.c @@ -251,7 +251,8 @@ NetLoop(proto_t protocol) } eth_halt(); - eth_init(bd); + if(eth_init(bd) < 0) + return(-1); restart: #ifdef CONFIG_NET_MULTI -- cgit v1.1