]> git.sur5r.net Git - u-boot/commitdiff
NET: Correct potential missing goto label in case statement.
authorGray Remlin <gryrmln@gmail.com>
Tue, 29 Mar 2011 10:21:32 +0000 (10:21 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 27 Apr 2011 22:46:49 +0000 (00:46 +0200)
If neither CONFIG_CMD_PING or CONFIG_CMD_SNTP are defined but
CONFIG_CMD_DNS is, a compile-time error will occur due to the
absence of a goto label.

Signed-off-by: Gray Remlin <gryrmln@gmail.com>
net/net.c

index a6096324126ada55e2f30afe023d376f6720ff16..e50bdf17be13e4481fa797aafe26b273435d55b5 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -1724,7 +1724,8 @@ static int net_check_prereq (proto_t protocol)
                        puts ("*** ERROR: `serverip' not set\n");
                        return (1);
                }
-#if defined(CONFIG_CMD_PING) || defined(CONFIG_CMD_SNTP)
+#if defined(CONFIG_CMD_PING) || defined(CONFIG_CMD_SNTP) || \
+    defined(CONFIG_CMD_DNS)
     common:
 #endif