From 1d0350ed0b1b0f63e3fb5db6b19397b84a2ea1c7 Mon Sep 17 00:00:00 2001 From: wdenk Date: Mon, 11 Nov 2002 21:14:20 +0000 Subject: * Patch by Jim Sandoz, 07 Nov 2002: Increase number of network RX buffers (PKTBUFSRX in "include/net.h") for EEPRO100 based boards (especially SP8240) which showed "Receiver is not ready" errors when U-Boot was processing the receive buffers slower than the network controller was filling them. * Get rid of obsolete include/mpc74xx.h --- net/net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net') diff --git a/net/net.c b/net/net.c index cc3bec638..b9cb67b25 100644 --- a/net/net.c +++ b/net/net.c @@ -187,7 +187,7 @@ restart: switch (net_check_prereq (protocol)) { case 1: /* network not configured */ - return 0; + return (-1); #ifdef CONFIG_NET_MULTI case 2: @@ -257,7 +257,7 @@ restart: if (ctrlc()) { eth_halt(); printf("\nAbort\n"); - return 0; + return (-1); } @@ -295,7 +295,7 @@ restart: return NetBootFileXferSize; case NETLOOP_FAIL: - return 0; + return (-1); } } } -- cgit v1.2.3