]> git.sur5r.net Git - u-boot/commitdiff
netconsole: remove `serverip' check
authorSimon Guinot <sguinot@lacie.com>
Sun, 1 May 2011 23:38:40 +0000 (23:38 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 12 May 2011 17:11:51 +0000 (19:11 +0200)
Netconsole use the environment variable `ncip' to configure the
destination IP. `serverip' don't need to be defined.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
net/net.c

index e50bdf17be13e4481fa797aafe26b273435d55b5..19ac0196b541e5d08d8599f2b01c9c3c5913f0c5 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -1718,7 +1718,6 @@ static int net_check_prereq (proto_t protocol)
 #if defined(CONFIG_CMD_NFS)
        case NFS:
 #endif
-       case NETCONS:
        case TFTP:
                if (NetServerIP == 0) {
                        puts ("*** ERROR: `serverip' not set\n");
@@ -1728,7 +1727,9 @@ static int net_check_prereq (proto_t protocol)
     defined(CONFIG_CMD_DNS)
     common:
 #endif
+               /* Fall through */
 
+       case NETCONS:
                if (NetOurIP == 0) {
                        puts ("*** ERROR: `ipaddr' not set\n");
                        return (1);