diff options
author | Joe Perches <joe@perches.com> | 2018-03-12 16:07:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-15 19:28:03 +0100 |
commit | 0c3d5a96d5e5e6d5662d335a3bdfb76f35433f18 (patch) | |
tree | c846443806fa4f887ca492d211ef04ca0aa21902 /drivers/net/usb/lg-vl600.c | |
parent | Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirshe... (diff) | |
download | linux-0c3d5a96d5e5e6d5662d335a3bdfb76f35433f18.tar.xz 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/usb/lg-vl600.c')
-rw-r--r-- | drivers/net/usb/lg-vl600.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/usb/lg-vl600.c b/drivers/net/usb/lg-vl600.c index dbabd7ca5268..257916f172cd 100644 --- a/drivers/net/usb/lg-vl600.c +++ b/drivers/net/usb/lg-vl600.c @@ -157,12 +157,8 @@ static int vl600_rx_fixup(struct usbnet *dev, struct sk_buff *skb) s->current_rx_buf = skb_copy_expand(skb, 0, le32_to_cpup(&frame->len), GFP_ATOMIC); - if (!s->current_rx_buf) { - netif_err(dev, ifup, dev->net, "Reserving %i bytes " - "for packet assembly failed.\n", - le32_to_cpup(&frame->len)); + if (!s->current_rx_buf) dev->net->stats.rx_errors++; - } return 0; } |