Skip to content
Commit dbb99d78 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller
Browse files

net: ipconfig: move ic_nameservers_fallback into #ifdef block



The new variable is only used when IPCONFIG_BOOTP is defined and otherwise
causes a warning:

net/ipv4/ipconfig.c:177:12: error: 'ic_nameservers_fallback' defined but not used [-Werror=unused-variable]

Move it next to the user.

Fixes: 81ac2722 ("net: ipconfig: Allow DNS to be overwritten by DHCPACK")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2ae9c66b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment