summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2002-11-11 21:14:20 +0000
committerwdenk <wdenk>2002-11-11 21:14:20 +0000
commit1d0350ed0b1b0f63e3fb5db6b19397b84a2ea1c7 (patch)
treec26edf461eb3d49625026f7ec5751f8fee2556d8 /net/net.c
parenteb9401e3ebfa6a1550522be28895af461137f797 (diff)
* Patch by Jim Sandoz, 07 Nov 2002:LABEL_2002_11_11_2211
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
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/net.c b/net/net.c
index cc3bec638c0..b9cb67b25ce 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);
}
}
}