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
21a4e46995
commit
c056b734e5
@ -954,14 +954,13 @@ static void enc28j60_hw_rx(struct net_device *ndev)
|
||||
if (len > MAX_FRAMELEN)
|
||||
ndev->stats.rx_over_errors++;
|
||||
} else {
|
||||
skb = dev_alloc_skb(len + NET_IP_ALIGN);
|
||||
skb = netdev_alloc_skb(ndev, len + NET_IP_ALIGN);
|
||||
if (!skb) {
|
||||
if (netif_msg_rx_err(priv))
|
||||
dev_err(&ndev->dev,
|
||||
"out of memory for Rx'd frame\n");
|
||||
ndev->stats.rx_dropped++;
|
||||
} else {
|
||||
skb->dev = ndev;
|
||||
skb_reserve(skb, NET_IP_ALIGN);
|
||||
/* copy the packet from the receive buffer */
|
||||
enc28j60_mem_read(priv,
|
||||
|
Reference in New Issue
Block a user