summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2018-03-12 08:07:12 -0700
committerDavid S. Miller <davem@davemloft.net>2018-03-15 14:28:03 -0400
commit0c3d5a96d5e5e6d5662d335a3bdfb76f35433f18 (patch)
treec846443806fa4f887ca492d211ef04ca0aa21902 /drivers/net/wireless/ti
parent80d9f3a0fdb8c1129921147780661ed0a2cae2a1 (diff)
downloadblackbird-op-linux-0c3d5a96d5e5e6d5662d335a3bdfb76f35433f18.tar.gz
blackbird-op-linux-0c3d5a96d5e5e6d5662d335a3bdfb76f35433f18.zip
net: drivers/net: Remove unnecessary skb_copy_expand OOM messages
skb_copy_expand without __GFP_NOWARN already does a dump_stack on OOM so these messages are redundant. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r--drivers/net/wireless/ti/wl1251/tx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ti/wl1251/tx.c b/drivers/net/wireless/ti/wl1251/tx.c
index de2fa6705574..12ed14ebc307 100644
--- a/drivers/net/wireless/ti/wl1251/tx.c
+++ b/drivers/net/wireless/ti/wl1251/tx.c
@@ -221,10 +221,8 @@ static int wl1251_tx_send_packet(struct wl1251 *wl, struct sk_buff *skb,
struct sk_buff *newskb = skb_copy_expand(skb, 0, 3,
GFP_KERNEL);
- if (unlikely(newskb == NULL)) {
- wl1251_error("Can't allocate skb!");
+ if (unlikely(newskb == NULL))
return -EINVAL;
- }
tx_hdr = (struct tx_double_buffer_desc *) newskb->data;
OpenPOWER on IntegriCloud