]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnl_hook: fix unused variable warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 21 Jul 2021 15:22:32 +0000 (17:22 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 Jul 2021 12:45:03 +0000 (14:45 +0200)
commita23ab05a3e35456c8f6d33ebb26691b8af5ead29
tree248fa83231f025aa5c1961140d205108f0c7689a
parenteed3076d3a9d0b66cb293930b0e4ef02a11d3e63
netfilter: nfnl_hook: fix unused variable warning

The only user of this variable is in an #ifdef:

net/netfilter/nfnetlink_hook.c: In function 'nfnl_hook_entries_head':
net/netfilter/nfnetlink_hook.c:177:28: error: unused variable 'netdev' [-Werror=unused-variable]

Fixes: 3da6980af338 ("netfilter: add new hook nfnl subsystem")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_hook.c