diff options
author | Joe Perches <joe@perches.com> | 2011-08-29 14:17:41 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-13 15:45:02 -0400 |
commit | 24616152b1d184864370c5ea21f8fdbd5a90d58d (patch) | |
tree | 58f21a71a8d02c25d56f96a4b47a251aaeae796a /net/wireless/util.c | |
parent | 246c0812049f92109ab9771e34480a2ce816f005 (diff) | |
download | lwn-24616152b1d184864370c5ea21f8fdbd5a90d58d.tar.gz lwn-24616152b1d184864370c5ea21f8fdbd5a90d58d.zip |
wireless: Remove unnecessary OOM logging messages
Removing unnecessary messages saves code and text.
Site specific OOM messages are duplications of a generic MM
out of memory message and aren't really useful, so just
delete them.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index eef82f79554d..39dbf4ad7ca1 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -513,10 +513,9 @@ int ieee80211_data_from_8023(struct sk_buff *skb, const u8 *addr, if (head_need) skb_orphan(skb); - if (pskb_expand_head(skb, head_need, 0, GFP_ATOMIC)) { - pr_err("failed to reallocate Tx buffer\n"); + if (pskb_expand_head(skb, head_need, 0, GFP_ATOMIC)) return -ENOMEM; - } + skb->truesize += head_need; } |