diff options
author | Joe Perches <joe@perches.com> | 2015-05-05 10:05:58 -0700 |
---|---|---|
committer | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2015-09-23 08:44:24 +0200 |
commit | 5628d98fc5e99e29f2a480d4a7b1faba94a0d422 (patch) | |
tree | 768f771fc36537816f9b056db825a3f7acbf262b /drivers/net/arcnet/capmode.c | |
parent | 811eafc02e16996674848d7d057909624fb0cc31 (diff) | |
download | linux-stable-5628d98fc5e99e29f2a480d4a7b1faba94a0d422.tar.gz linux-stable-5628d98fc5e99e29f2a480d4a7b1faba94a0d422.tar.bz2 linux-stable-5628d98fc5e99e29f2a480d4a7b1faba94a0d422.zip |
arcnet: Remove unnecessary OOM messages
Alloc failures have generic stack dumps so these are redundant.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Diffstat (limited to 'drivers/net/arcnet/capmode.c')
-rw-r--r-- | drivers/net/arcnet/capmode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/arcnet/capmode.c b/drivers/net/arcnet/capmode.c index 92b553e70d5c..de80d9e0e53f 100644 --- a/drivers/net/arcnet/capmode.c +++ b/drivers/net/arcnet/capmode.c @@ -57,7 +57,6 @@ static void rx(struct net_device *dev, int bufnum, skb = alloc_skb(length + ARC_HDR_SIZE + sizeof(int), GFP_ATOMIC); if (skb == NULL) { - arc_printk(D_NORMAL, dev, "Memory squeeze, dropping packet\n"); dev->stats.rx_dropped++; return; } @@ -197,10 +196,8 @@ static int ack_tx(struct net_device *dev, int acked) /* Now alloc a skb to send back up through the layers: */ ackskb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); - if (ackskb == NULL) { - arc_printk(D_NORMAL, dev, "Memory squeeze, can't acknowledge\n"); + if (ackskb == NULL) goto free_outskb; - } skb_put(ackskb, length + ARC_HDR_SIZE); ackskb->dev = dev; |