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
c4062dfc42
commit
dae2e9f430
@@ -1039,7 +1039,8 @@ xirc2ps_interrupt(int irq, void *dev_id)
|
||||
|
||||
pr_debug("rsr=%#02x packet_length=%u\n", rsr, pktlen);
|
||||
|
||||
skb = dev_alloc_skb(pktlen+3); /* 1 extra so we can use insw */
|
||||
/* 1 extra so we can use insw */
|
||||
skb = netdev_alloc_skb(dev, pktlen + 3);
|
||||
if (!skb) {
|
||||
pr_notice("low memory, packet dropped (size=%u)\n", pktlen);
|
||||
dev->stats.rx_dropped++;
|
||||
|
Reference in New Issue
Block a user