diff options
author | Bob Copeland <me@bobcopeland.com> | 2014-08-22 15:18:02 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-08-28 20:41:57 +0200 |
commit | dcb784050a518c59f695f76a0a3f802c0a9d92ab (patch) | |
tree | d898649315ed2b24bb104f5234cf516e78611d28 | |
parent | ath5k: ensure led name is null terminated (diff) | |
download | linux-dcb784050a518c59f695f76a0a3f802c0a9d92ab.tar.xz linux-dcb784050a518c59f695f76a0a3f802c0a9d92ab.zip |
ath5k: remove redundant null check before kfree()
kfree() null-checks its argument.
Found by smatch.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath5k/attach.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |