aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/dec/ewrk3.c
diff options
context:
space:
mode:
authorPradeep A Dalvi <netdev@pradeepdalvi.com>2012-02-04 21:50:10 -0500
committerDavid S. Miller <davem@davemloft.net>2012-02-06 11:48:09 -0500
commit21a4e46995fa1a76281ac0281ff837f706231a37 (patch)
tree3e57d5f21bbc8ec7e625f05e548957f0b4e54013 /drivers/net/ethernet/dec/ewrk3.c
parent1d266430546acf01438ae42d0a7370db4817e2ad (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/dec/ewrk3.c')
-rw-r--r--drivers/net/ethernet/dec/ewrk3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dec/ewrk3.c b/drivers/net/ethernet/dec/ewrk3.c
index f9df5e4d0341..1879f84a25a3 100644
--- a/drivers/net/ethernet/dec/ewrk3.c
+++ b/drivers/net/ethernet/dec/ewrk3.c
@@ -986,8 +986,10 @@ static int ewrk3_rx(struct net_device *dev)
986 dev->stats.rx_fifo_errors++; 986 dev->stats.rx_fifo_errors++;
987 } else { 987 } else {
988 struct sk_buff *skb; 988 struct sk_buff *skb;
989 skb = netdev_alloc_skb(dev,
990 pkt_len + 2);
989 991
990 if ((skb = dev_alloc_skb(pkt_len + 2)) != NULL) { 992 if (skb != NULL) {
991 unsigned char *p; 993 unsigned char *p;
992 skb_reserve(skb, 2); /* Align to 16 bytes */ 994 skb_reserve(skb, 2); /* Align to 16 bytes */
993 p = skb_put(skb, pkt_len); 995 p = skb_put(skb, pkt_len);