rhashtable: Remove obsolete rhashtable_walk_init function
[linux-block.git] / lib / test_rhashtable.c
index 2c0c53a997340c1d078c69586d8a1304c91c4b0f..3bd2e91bfc297245c85713fe55637fc7b3b26961 100644 (file)
@@ -177,16 +177,11 @@ static int __init test_rht_lookup(struct rhashtable *ht, struct test_obj *array,
 
 static void test_bucket_stats(struct rhashtable *ht, unsigned int entries)
 {
-       unsigned int err, total = 0, chain_len = 0;
+       unsigned int total = 0, chain_len = 0;
        struct rhashtable_iter hti;
        struct rhash_head *pos;
 
-       err = rhashtable_walk_init(ht, &hti, GFP_KERNEL);
-       if (err) {
-               pr_warn("Test failed: allocation error");
-               return;
-       }
-
+       rhashtable_walk_enter(ht, &hti);
        rhashtable_walk_start(&hti);
 
        while ((pos = rhashtable_walk_next(&hti))) {