summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2012-01-30 16:55:13 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-02-03 20:17:12 +0100
commit8149415efa033ca138c0080ded77329e98697c7b (patch)
tree4a719bde81a9db660d08f6068193a658aeb23221 /drivers/net
parentmac80211: timeout a single frame in the rx reorder buffer (diff)
downloadlinux-8149415efa033ca138c0080ded77329e98697c7b.tar.xz
linux-8149415efa033ca138c0080ded77329e98697c7b.zip
ath9k: use WARN_ON_ONCE in ath_rc_get_highest_rix
The device seems to survive the issue, so no need to flood the logs about it... Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath9k/rc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c
index b3c3798fe513..635b592ad961 100644
--- a/drivers/net/wireless/ath/ath9k/rc.c
+++ b/drivers/net/wireless/ath/ath9k/rc.c
@@ -694,7 +694,7 @@ static u8 ath_rc_get_highest_rix(struct ath_softc *sc,
return rate;
/* This should not happen */
- WARN_ON(1);
+ WARN_ON_ONCE(1);
rate = ath_rc_priv->valid_rate_index[0];