Skip to content

Commit

Permalink
ath9k: use WARN_ON_ONCE in ath_rc_get_highest_rix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John W. Linville committed Jan 30, 2012
1 parent ff7e9f9 commit 41b2d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 41b2d62

Please sign in to comment.