* [PATCH 4/5] ath9k: fix return code check
@ 2008-07-20 13:33 Felix Fietkau
0 siblings, 0 replies; only message in thread
From: Felix Fietkau @ 2008-07-20 13:33 UTC (permalink / raw)
To: linux-wireless; +Cc: ath5k-devel
Fix a return code check for ath9k_hw_nvram_read, this function returns
AH_TRUE when the call succeeded
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
--- a/drivers/net/wireless/ath9k/hw.c
+++ b/drivers/net/wireless/ath9k/hw.c
@@ -803,7 +803,7 @@
u_int16_t magic, magic2;
int addr;
- if (ath9k_hw_nvram_read(ah, AR5416_EEPROM_MAGIC_OFFSET,
+ if (!ath9k_hw_nvram_read(ah, AR5416_EEPROM_MAGIC_OFFSET,
&magic)) {
HDPRINTF(ah, HAL_DBG_EEPROM,
"%s: Reading Magic # failed\n", __func__);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-20 13:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 13:33 [PATCH 4/5] ath9k: fix return code check Felix Fietkau
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).