summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-11-05 17:58:49 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2020-12-07 11:50:45 -0500
commit492f2208a8a1788569f67142cab50cc9e13be5ee (patch)
treee29b80db4cfb92824b646aff69eac402935a61d4
parentbcd3af86fe34c5d2cdea08e8eddd3b1b086b5187 (diff)
rhashtable: Drop assertions about obj_hashfn
No idea why these existed Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--include/linux/rhashtable.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h
index 68dab3e08aad..b064702b5537 100644
--- a/include/linux/rhashtable.h
+++ b/include/linux/rhashtable.h
@@ -900,8 +900,6 @@ static inline int rhashtable_lookup_insert_fast(
const char *key = rht_obj(ht, obj);
void *ret;
- BUG_ON(ht->p.obj_hashfn);
-
ret = __rhashtable_insert_fast(ht, key + ht->p.key_offset, obj, params,
false);
if (IS_ERR(ret))
@@ -926,8 +924,6 @@ static inline void *rhashtable_lookup_get_insert_fast(
{
const char *key = rht_obj(ht, obj);
- BUG_ON(ht->p.obj_hashfn);
-
return __rhashtable_insert_fast(ht, key + ht->p.key_offset, obj, params,
false);
}