diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2012-04-06 16:35:53 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-09 15:54:48 -0400 |
commit | aa331df0e5e6ebac086ed80b4fbbfd912fe6b32a (patch) | |
tree | 5cc76a05498c1a161367d72f2653744c3eaa8a27 /include/net/mac80211.h | |
parent | 0298dc9f2273fb2d596ae10d7700f054bfce601d (diff) |
mac80211: Convert WARN_ON to WARN_ON_ONCE
When the control-rate tables are not set up correctly, it makes
little sense to spam the logs, thus change the WARN_ON to WARN_ON_ONCE.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 87d203ff7a8..9210bdc7bd8 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -1327,7 +1327,7 @@ static inline struct ieee80211_rate * ieee80211_get_tx_rate(const struct ieee80211_hw *hw, const struct ieee80211_tx_info *c) { - if (WARN_ON(c->control.rates[0].idx < 0)) + if (WARN_ON_ONCE(c->control.rates[0].idx < 0)) return NULL; return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[0].idx]; } |