projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd966e4
)
net: lpc_eth: no need to reserve 8 extra bytes in rx skb
author
Eric Dumazet
<eric.dumazet@gmail.com>
Tue, 3 Apr 2012 12:02:11 +0000
(12:02 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 4 Apr 2012 22:08:49 +0000
(18:08 -0400)
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>
drivers/net/ethernet/nxp/lpc_eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/nxp/lpc_eth.c
b/drivers/net/ethernet/nxp/lpc_eth.c
index
6dfc26d
..
d3469d8
100644
(file)
--- 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)
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 */