From: Bob Copeland Date: Fri, 22 Aug 2014 13:18:02 +0000 (-0400) Subject: ath5k: remove redundant null check before kfree() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dcb784050a518c59f695f76a0a3f802c0a9d92ab;p=linux-beck.git ath5k: remove redundant null check before kfree() kfree() null-checks its argument. Found by smatch. Signed-off-by: Bob Copeland Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c index 7106547a14dd..66b6366158b9 100644 --- a/drivers/net/wireless/ath/ath5k/attach.c +++ b/drivers/net/wireless/ath/ath5k/attach.c @@ -351,8 +351,7 @@ void ath5k_hw_deinit(struct ath5k_hw *ah) { __set_bit(ATH_STAT_INVALID, ah->status); - if (ah->ah_rf_banks != NULL) - kfree(ah->ah_rf_banks); + kfree(ah->ah_rf_banks); ath5k_eeprom_detach(ah);