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)
commit217e26bd87b2930856726b48a4e71c768b8c9bf5
tree248fa83231f025aa5c1961140d205108f0c7689a
parenta33f387ecd5aafae514095c2c4a8c24f7aea7e8b
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: e2cf17d3774c ("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