linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] Ath9k: fix uninitialized value in ath9k_hw_reset
@ 2008-10-10 17:56 Jiri Slaby
  2008-10-10 11:01 ` Luis R. Rodriguez
  2008-10-10 18:53 ` David Miller
  0 siblings, 2 replies; 7+ messages in thread
From: Jiri Slaby @ 2008-10-10 17:56 UTC (permalink / raw)
  To: John W. Linville
  Cc: linux-wireless, linux-kernel, Jiri Slaby, Luis R. Rodriguez,
	Jouni Malinen

status ath9k_hw_reset() parameter should be set in every case, since
it is used in callers to find out an error code.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Cc: Jouni Malinen <jmalinen@atheros.com>
---
 drivers/net/wireless/ath9k/hw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c
index 62e44a0..fb6727b 100644
--- a/drivers/net/wireless/ath9k/hw.c
+++ b/drivers/net/wireless/ath9k/hw.c
@@ -5893,7 +5893,7 @@ bool ath9k_hw_reset(struct ath_hal *ah,
 	}
 
 	if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
-		return false;
+		FAIL(-EIO);
 
 	if (curchan)
 		ath9k_hw_getnf(ah, curchan);
-- 
1.6.0.2


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

end of thread, other threads:[~2008-10-10 19:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-10 17:56 [PATCH 1/1] Ath9k: fix uninitialized value in ath9k_hw_reset Jiri Slaby
2008-10-10 11:01 ` Luis R. Rodriguez
2008-10-10 18:53 ` David Miller
2008-10-10 19:00   ` Luis R. Rodriguez
2008-10-10 19:00     ` David Miller
2008-10-10 19:07       ` Luis R. Rodriguez
2008-10-10 19:08         ` David Miller

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).