summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-12-19 13:59:19 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2016-01-07 15:16:15 +0200
commit19f2ce3f1114c5d59e5e4457ccdd15464070dc5f (patch)
treeb078a9ac0cab37fa581d77bcfbd5f5bb5c2bd0f2 /drivers/net/wireless/ath/ath9k
parent50e81e2f0b0a9fdb9e5bd515270680c7c281ce1f (diff)
downloadblackbird-op-linux-19f2ce3f1114c5d59e5e4457ccdd15464070dc5f.tar.gz
blackbird-op-linux-19f2ce3f1114c5d59e5e4457ccdd15464070dc5f.zip
ath9k: fix ath9k_hw_nvram_check_version()
There is a type bug so it always returns success. Fixes: 6fa658fd5ab2 ('ath9k: Simplify and fix eeprom endianness swapping') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r--drivers/net/wireless/ath/ath9k/eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c b/drivers/net/wireless/ath/ath9k/eeprom.c
index f8c5065e5f5f..a7afdeee698c 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom.c
@@ -206,7 +206,7 @@ bool ath9k_hw_nvram_check_version(struct ath_hw *ah, int version, int minrev)
ath_err(common, "Bad EEPROM VER 0x%04x or REV 0x%04x\n",
ah->eep_ops->get_eeprom_ver(ah),
ah->eep_ops->get_eeprom_rev(ah));
- return -EINVAL;
+ return false;
}
return true;
OpenPOWER on IntegriCloud