All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch -next] ath9k: fix ath9k_hw_nvram_check_version()
@ 2015-12-19 10:59 ` Dan Carpenter
  0 siblings, 0 replies; 21+ 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] 21+ messages in thread

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

Thread overview: 21+ 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 10:59 ` [ath9k-devel] " Dan Carpenter
2015-12-19 10:59 ` Dan Carpenter
2015-12-19 11:12 ` Martin Blumenstingl
2015-12-19 11:12   ` [ath9k-devel] " Martin Blumenstingl
2015-12-19 11:12   ` Martin Blumenstingl
2015-12-20 18:47 ` Joe Perches
2015-12-20 18:47   ` [ath9k-devel] " Joe Perches
2015-12-20 18:47   ` Joe Perches
2015-12-20 19:00   ` Julia Lawall
2015-12-20 19:00     ` [ath9k-devel] " Julia Lawall
2015-12-20 19:00     ` Julia Lawall
2015-12-20 19:05     ` Joe Perches
2015-12-20 19:05       ` [ath9k-devel] " Joe Perches
2015-12-20 19:05       ` Joe Perches
2015-12-20 20:33       ` Dan Carpenter
2015-12-20 20:33         ` [ath9k-devel] " Dan Carpenter
2015-12-20 20:33         ` Dan Carpenter
2016-01-07 13:05 ` Kalle Valo
2016-01-07 13:05   ` [ath9k-devel] " Kalle Valo
2016-01-07 13:05   ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.