Commit dcb78405 authored by Bob Copeland's avatar Bob Copeland Committed by John W. Linville

ath5k: remove redundant null check before kfree()

kfree() null-checks its argument.
Found by smatch.
Signed-off-by: default avatarBob Copeland <me@bobcopeland.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent daf9669b
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment