net: ipconfig: move ic_nameservers_fallback into #ifdef block
authorArnd Bergmann <arnd@arndb.de>
Fri, 19 May 2023 09:32:38 +0000 (11:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2023 10:17:55 +0000 (11:17 +0100)
commitdbb99d78522ae3d3f0d69fe7a8a0544a829f1d8e
treec6c431ce51cfa605b882d2c109435377afc90980
parent2ae9c66b04554bf5b3eeaab8c12a0bfb9f28ebde
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: 81ac2722fa19 ("net: ipconfig: Allow DNS to be overwritten by DHCPACK")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c