rhashtable: Fix use before NULL check in bucket_table_free
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 25 Feb 2017 14:38:11 +0000 (22:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Feb 2017 02:32:57 +0000 (21:32 -0500)
commitca435407ba6655a0d63230818ffe7006d967dfe5
tree715d4494ea64d0e6ab26518a0c1489ed0491a134
parent37f1c63e3e29181ad412485eec2200cffc1dc70f
rhashtable: Fix use before NULL check in bucket_table_free

Dan Carpenter reported a use before NULL check bug in the function
bucket_table_free.  In fact we don't need the NULL check at all as
no caller can provide a NULL argument.  So this patch fixes this by
simply removing it.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c