ath9k: fix ath9k_hw_nvram_check_version()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 19 Dec 2015 10:59:19 +0000 (13:59 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 7 Jan 2016 13:16:15 +0000 (15:16 +0200)
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>
drivers/net/wireless/ath/ath9k/eeprom.c

index f8c5065..a7afdee 100644 (file)
@@ -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;