Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41b2d627 authored by John W. Linville's avatar John W. Linville
Browse files

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: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ff7e9f99
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -694,7 +694,7 @@ static u8 ath_rc_get_highest_rix(struct ath_softc *sc,
		return rate;
		return rate;


	/* This should not happen */
	/* This should not happen */
	WARN_ON(1);
	WARN_ON_ONCE(1);


	rate = ath_rc_priv->valid_rate_index[0];
	rate = ath_rc_priv->valid_rate_index[0];