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
@@ -735,7 +735,7 @@ static void netdev_rx(struct net_device *dev)
|
||||
|
||||
if (status & RXDS_RXGD) {
|
||||
data = ether->rdesc->recv_buf[ether->cur_rx];
|
||||
skb = dev_alloc_skb(length+2);
|
||||
skb = netdev_alloc_skb(dev, length + 2);
|
||||
if (!skb) {
|
||||
dev_err(&pdev->dev, "get skb buffer error\n");
|
||||
ether->stats.rx_dropped++;
|
||||
|
Reference in New Issue
Block a user