linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch -next] ath9k: fix ath9k_hw_nvram_check_version()
@ 2015-12-19 10:59 Dan Carpenter
  2015-12-19 11:12 ` Martin Blumenstingl
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Dan Carpenter @ 2015-12-19 10:59 UTC (permalink / raw)
  To: QCA ath9k Development, Martin Blumenstingl
  Cc: Kalle Valo, linux-wireless, ath9k-devel, kernel-janitors

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>

diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c b/drivers/net/wireless/ath/ath9k/eeprom.c
index f8c5065..a7afdee 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;

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-01-07 13:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-19 10:59 [patch -next] ath9k: fix ath9k_hw_nvram_check_version() Dan Carpenter
2015-12-19 11:12 ` Martin Blumenstingl
2015-12-20 18:47 ` Joe Perches
2015-12-20 19:00   ` Julia Lawall
2015-12-20 19:05     ` Joe Perches
2015-12-20 20:33       ` Dan Carpenter
2016-01-07 13:05 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).