ath9k: use WARN_ON_ONCE in ath_rc_get_highest_rix
authorJohn W. Linville <linville@tuxdriver.com>
Mon, 30 Jan 2012 15:53:55 +0000 (10:53 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 30 Jan 2012 15:53:55 +0000 (10:53 -0500)
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>
drivers/net/wireless/ath/ath9k/rc.c

index b3c3798fe5130eaf4e4ea7e528a3e8c646f8711b..635b592ad96181478af45cb2697ea05dbd823077 100644 (file)
@@ -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];