diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 172454e6b979e935ef0d184953b6c35b06c32592..fac1a78afb3917d63cd8ac39e6aa938116ea5167 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c @@ -146,9 +146,7 @@ static void bucket_table_free(const struct bucket_table *tbl) if (tbl->nest) nested_bucket_table_free(tbl); - if (tbl) - kvfree(tbl->locks); - + kvfree(tbl->locks); kvfree(tbl); }