netdev: ethernet dev_alloc_skb to netdev_alloc_skb
Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet - Removed extra skb->dev = dev after netdev_alloc_skb Signed-off-by: Pradeep A Dalvi <netdev@pradeepdalvi.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3238a9be4d
commit
1d26643054
@@ -290,7 +290,7 @@ static int lance_rx(struct net_device *dev)
|
||||
dev->stats.rx_errors++;
|
||||
} else {
|
||||
int len = (rd->mblength & 0xfff) - 4;
|
||||
struct sk_buff *skb = dev_alloc_skb(len + 2);
|
||||
struct sk_buff *skb = netdev_alloc_skb(dev, len + 2);
|
||||
|
||||
if (!skb) {
|
||||
netdev_warn(dev, "Memory squeeze, deferring packet\n");
|
||||
|
Reference in New Issue
Block a user