summaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorDavid S. Miller2012-04-13 01:41:23 +0200
committerDavid S. Miller2012-04-13 01:41:23 +0200
commit011e3c63251be832d23df9f0697626ab7b354d02 (patch)
tree2cad5b58c274c93ae49d9b58fb15d784d4dfd78f /include/net/mac80211.h
parentnet/ipv6/exthdrs.c: Strict PadN option checking (diff)
parentMerge branch 'akpm' (Andrew's patch-bomb) (diff)
downloadkernel-qcow2-linux-011e3c63251be832d23df9f0697626ab7b354d02.tar.gz
kernel-qcow2-linux-011e3c63251be832d23df9f0697626ab7b354d02.tar.xz
kernel-qcow2-linux-011e3c63251be832d23df9f0697626ab7b354d02.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 87d203ff7a8a..9210bdc7bd8d 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];
}