Commit e7f8c1fe authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

net: lpc_eth: no need to reserve 8 extra bytes in rx skb

Probably a leftover from ancient code...
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Cc: Roland Stigge <stigge@antcom.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bd966e47
...@@ -990,10 +990,10 @@ static int __lpc_handle_recv(struct net_device *ndev, int budget) ...@@ -990,10 +990,10 @@ static int __lpc_handle_recv(struct net_device *ndev, int budget)
ndev->stats.rx_errors++; ndev->stats.rx_errors++;
} else { } else {
/* Packet is good */ /* Packet is good */
skb = dev_alloc_skb(len + 8); skb = dev_alloc_skb(len);
if (!skb) if (!skb) {
ndev->stats.rx_dropped++; ndev->stats.rx_dropped++;
else { } else {
prdbuf = skb_put(skb, len); prdbuf = skb_put(skb, len);
/* Copy packet from buffer */ /* Copy packet from buffer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment