From: John W. Linville Date: Mon, 30 Jan 2012 15:55:13 +0000 (-0500) Subject: ath9k: use WARN_ON_ONCE in ath_rc_get_highest_rix X-Git-Tag: MMI-PSA29.97-13-9~17300^2^2~39 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8149415efa033ca138c0080ded77329e98697c7b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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];