aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/nxp
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-04-03 08:02:11 -0400
committerDavid S. Miller <davem@davemloft.net>2012-04-04 18:08:49 -0400
commite7f8c1fe1705e78f56ca4c8350545ad58d73451a (patch)
tree08beb008394e9c6ee3562625309a9ce24ab11e86 /drivers/net/ethernet/nxp
parentbd966e471391d7ee028bf54ac5a2f25415710713 (diff)
net: lpc_eth: no need to reserve 8 extra bytes in rx skb
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>
Diffstat (limited to 'drivers/net/ethernet/nxp')
-rw-r--r--drivers/net/ethernet/nxp/lpc_eth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c
index 6dfc26d85e47..d3469d8e3f0d 100644
--- a/drivers/net/ethernet/nxp/lpc_eth.c
+++ b/drivers/net/ethernet/nxp/lpc_eth.c
@@ -990,10 +990,10 @@ static int __lpc_handle_recv(struct net_device *ndev, int budget)
990 ndev->stats.rx_errors++; 990 ndev->stats.rx_errors++;
991 } else { 991 } else {
992 /* Packet is good */ 992 /* Packet is good */
993 skb = dev_alloc_skb(len + 8); 993 skb = dev_alloc_skb(len);
994 if (!skb) 994 if (!skb) {
995 ndev->stats.rx_dropped++; 995 ndev->stats.rx_dropped++;
996 else { 996 } else {
997 prdbuf = skb_put(skb, len); 997 prdbuf = skb_put(skb, len);
998 998
999 /* Copy packet from buffer */ 999 /* Copy packet from buffer */