提交 dcb78405 编写于 作者: B Bob Copeland 提交者: John W. Linville

ath5k: remove redundant null check before kfree()

kfree() null-checks its argument.
Found by smatch.
Signed-off-by: NBob Copeland <me@bobcopeland.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册