aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rhashtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rhashtable.c')
-rw-r--r--lib/rhashtable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c
index 3825c30aaa36..47de025b6245 100644
--- a/lib/rhashtable.c
+++ b/lib/rhashtable.c
@@ -506,8 +506,10 @@ static void *rhashtable_lookup_one(struct rhashtable *ht,
506 if (!key || 506 if (!key ||
507 (ht->p.obj_cmpfn ? 507 (ht->p.obj_cmpfn ?
508 ht->p.obj_cmpfn(&arg, rht_obj(ht, head)) : 508 ht->p.obj_cmpfn(&arg, rht_obj(ht, head)) :
509 rhashtable_compare(&arg, rht_obj(ht, head)))) 509 rhashtable_compare(&arg, rht_obj(ht, head)))) {
510 pprev = &head->next;
510 continue; 511 continue;
512 }
511 513
512 if (!ht->rhlist) 514 if (!ht->rhlist)
513 return rht_obj(ht, head); 515 return rht_obj(ht, head);