From dd4da9f1973836bc237ddba3e21116ba2fb71468 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Fri, 6 Apr 2012 16:35:53 -0500 Subject: [PATCH] --- yaml --- r: 299045 b: refs/heads/master c: aa331df0e5e6ebac086ed80b4fbbfd912fe6b32a h: refs/heads/master i: 299043: bae7537b5279ba9d9732f11284c2b3a1dd89c339 v: v3 --- [refs] | 2 +- trunk/include/net/mac80211.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c0f94dbb1589..6f23e3a9486c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0298dc9f2273fb2d596ae10d7700f054bfce601d +refs/heads/master: aa331df0e5e6ebac086ed80b4fbbfd912fe6b32a diff --git a/trunk/include/net/mac80211.h b/trunk/include/net/mac80211.h index 87d203ff7a8a..9210bdc7bd8d 100644 --- a/trunk/include/net/mac80211.h +++ b/trunk/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]; }