rhashtable: Remove obsolete rhashtable_walk_init function
The rhashtable_walk_init function has been obsolete for more than two years. This patch finally converts its last users over to rhashtable_walk_enter and removes it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
3692293163
commit
6c4128f658
@@ -2549,15 +2549,7 @@ struct nl_seq_iter {
|
||||
|
||||
static int netlink_walk_start(struct nl_seq_iter *iter)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = rhashtable_walk_init(&nl_table[iter->link].hash, &iter->hti,
|
||||
GFP_KERNEL);
|
||||
if (err) {
|
||||
iter->link = MAX_LINKS;
|
||||
return err;
|
||||
}
|
||||
|
||||
rhashtable_walk_enter(&nl_table[iter->link].hash, &iter->hti);
|
||||
rhashtable_walk_start(&iter->hti);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user