Skip to content

Commit

Permalink
net: lpc_eth: no need to reserve 8 extra bytes in rx skb
Browse files Browse the repository at this point in the history
Probably a leftover from ancient code...

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Roland Stigge <stigge@antcom.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Apr 4, 2012
1 parent bd966e4 commit e7f8c1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/ethernet/nxp/lpc_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,10 @@ static int __lpc_handle_recv(struct net_device *ndev, int budget)
ndev->stats.rx_errors++;
} else {
/* Packet is good */
skb = dev_alloc_skb(len + 8);
if (!skb)
skb = dev_alloc_skb(len);
if (!skb) {
ndev->stats.rx_dropped++;
else {
} else {
prdbuf = skb_put(skb, len);

/* Copy packet from buffer */
Expand Down

0 comments on commit e7f8c1f

Please sign in to comment.