summaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2006-08-08 01:11:48 +0200
committerDavid S. Miller <davem@davemloft.net>2006-08-08 01:11:48 +0200
commitd14cc9a342a8004b0ecfe66f1f12120962b61d8c (patch)
tree2789722fbdd2118b51f09d47373b83103320417e /drivers/net/tg3.c
parent[NET]: Assign skb->dev in netdev_alloc_skb (diff)
downloadlinux-d14cc9a342a8004b0ecfe66f1f12120962b61d8c.tar.xz
linux-d14cc9a342a8004b0ecfe66f1f12120962b61d8c.zip
[TG3]: skb->dev assignment is done by netdev_alloc_skb
All caller of netdev_alloc_skb need to assign skb->dev shortly afterwards. Move it into common code. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 6f97962dd06b..0afbed6753fa 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -3101,7 +3101,6 @@ static int tg3_alloc_rx_skb(struct tg3 *tp, u32 opaque_key,
if (skb == NULL)
return -ENOMEM;
- skb->dev = tp->dev;
skb_reserve(skb, tp->rx_offset);
mapping = pci_map_single(tp->pdev, skb->data,
@@ -3274,7 +3273,6 @@ static int tg3_rx(struct tg3 *tp, int budget)
if (copy_skb == NULL)
goto drop_it_no_recycle;
- copy_skb->dev = tp->dev;
skb_reserve(copy_skb, 2);
skb_put(copy_skb, len);
pci_dma_sync_single_for_cpu(tp->pdev, dma_addr, len, PCI_DMA_FROMDEVICE);