From 9030a55ef3b82aca88d228692fdceffc4ca14aa2 Mon Sep 17 00:00:00 2001 From: Gray Remlin Date: Tue, 29 Mar 2011 10:21:32 +0000 Subject: [PATCH] NET: Correct potential missing goto label in case statement. 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 --- net/net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/net.c b/net/net.c index a609632412..e50bdf17be 100644 --- 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 -- 2.30.2