netfilter: nf_tables: use rhashtable_walk_enter instead of rhashtable_walk_init
authorTaehee Yoo <ap420073@gmail.com>
Thu, 13 Sep 2018 15:56:33 +0000 (00:56 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 20 Sep 2018 16:26:56 +0000 (18:26 +0200)
commit0de22baabc97f7fc05e31d82cec8049947946887
treee5b7a75440e9ab4025dab8c67bfa09fdedf4092a
parentf8b0a3ab06a092c84ec0cab8232abb1b6f7c14f4
netfilter: nf_tables: use rhashtable_walk_enter instead of rhashtable_walk_init

rhashtable_walk_init() is deprecated and rhashtable_walk_enter() can be
used instead. rhashtable_walk_init() is wrapper function of
rhashtable_walk_enter() so that logic is actually same.
But rhashtable_walk_enter() doesn't return error hence error path
code can be removed.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c
net/netfilter/nft_set_hash.c