]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mac80211: remove string from unaligned packet warning
authorJohannes Berg <johannes.berg@intel.com>
Fri, 6 Nov 2015 11:34:24 +0000 (12:34 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
This really should never happen except very early in the process
of bringing up a new driver, at which point you'll have to add
more debugging in the driver and this string isn't useful. Remove
it and save some size (when it's even compiled in.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c

index 8bae5de0dc44299146993df3581a951078eed733..1f827539d828be099067d07e5c64d3b84077df7e 100644 (file)
@@ -661,8 +661,7 @@ static void ieee80211_parse_qos(struct ieee80211_rx_data *rx)
 static void ieee80211_verify_alignment(struct ieee80211_rx_data *rx)
 {
 #ifdef CONFIG_MAC80211_VERBOSE_DEBUG
-       WARN_ONCE((unsigned long)rx->skb->data & 1,
-                 "unaligned packet at 0x%p\n", rx->skb->data);
+       WARN_ON_ONCE((unsigned long)rx->skb->data & 1);
 #endif
 }