# \[PATCH\] ath9k: use WARN\_ON\_ONCE in ath\_rc\_get\_highest\_rix

- From: John W. Linville \<hidden\>
- Date: 2012-01-30 16:01:25 
- List: linux-wireless
- Page: https://ratatoskr.run/linux-wireless/2012/01/15675673
- Thread: https://ratatoskr.run/linux-wireless/2012/01/15675673/t.md

```text
The device seems to survive the issue, so no need to flood the logs
about it...

Signed-off-by: John W. Linville <redacted>
---
 drivers/net/wireless/ath/ath9k/rc.c |    2 +-
 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 b3c3798..635b592 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];
 
-- 
1.7.4.4

```
