projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Patch by Jim Sandoz, 07 Nov 2002:
[platform/kernel/u-boot.git]
/
net
/
net.c
diff --git
a/net/net.c
b/net/net.c
index
cc3bec6
..
b9cb67b
100644
(file)
--- a/
net/net.c
+++ b/
net/net.c
@@
-187,7
+187,7
@@
restart:
switch (net_check_prereq (protocol)) {
case 1:
/* network not configured */
switch (net_check_prereq (protocol)) {
case 1:
/* network not configured */
- return
0
;
+ return
(-1)
;
#ifdef CONFIG_NET_MULTI
case 2:
#ifdef CONFIG_NET_MULTI
case 2:
@@
-257,7
+257,7
@@
restart:
if (ctrlc()) {
eth_halt();
printf("\nAbort\n");
if (ctrlc()) {
eth_halt();
printf("\nAbort\n");
- return
0
;
+ return
(-1)
;
}
}
@@
-295,7
+295,7
@@
restart:
return NetBootFileXferSize;
case NETLOOP_FAIL:
return NetBootFileXferSize;
case NETLOOP_FAIL:
- return
0
;
+ return
(-1)
;
}
}
}
}
}
}