1 Fix a return code check for ath9k_hw_nvram_read, this function returns
2 AH_TRUE when the call succeeded
4 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
6 --- a/drivers/net/wireless/ath9k/hw.c
7 +++ b/drivers/net/wireless/ath9k/hw.c
9 u_int16_t magic, magic2;
12 - if (ath9k_hw_nvram_read(ah, AR5416_EEPROM_MAGIC_OFFSET,
13 + if (!ath9k_hw_nvram_read(ah, AR5416_EEPROM_MAGIC_OFFSET,
15 HDPRINTF(ah, HAL_DBG_EEPROM,
16 "%s: Reading Magic # failed\n", __func__);