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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -351,7 +351,6 @@ 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);

	ath5k_eeprom_detach(ah);