summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2012-07-09 16:09:25 +0200
committerDavid S. Miller <davem@davemloft.net>2012-07-11 08:24:56 +0200
commit5c8b73ca43dc6f419e02597d9942222b7987e74c (patch)
tree403dcd9a0297aaa620857508a22a8e7c2258f923 /drivers/net/ethernet/amd
parentvxge/s2io: remove dead URLs (diff)
downloadlinux-5c8b73ca43dc6f419e02597d9942222b7987e74c.tar.xz
linux-5c8b73ca43dc6f419e02597d9942222b7987e74c.zip
lance: remove unnecessary setting of skb->dev
skb->dev is being unnecessarily set during ring init. It is already being set to the proper value when eth_type_trans is called on packet receive, and the skb->dev is not referenced anywhere else in the code. Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd')
-rw-r--r--drivers/net/ethernet/amd/lance.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/amd/lance.c b/drivers/net/ethernet/amd/lance.c
index a6e2e840884e..5c728436b85e 100644
--- a/drivers/net/ethernet/amd/lance.c
+++ b/drivers/net/ethernet/amd/lance.c
@@ -873,10 +873,9 @@ lance_init_ring(struct net_device *dev, gfp_t gfp)
skb = alloc_skb(PKT_BUF_SZ, GFP_DMA | gfp);
lp->rx_skbuff[i] = skb;
- if (skb) {
- skb->dev = dev;
+ if (skb)
rx_buff = skb->data;
- } else
+ else
rx_buff = kmalloc(PKT_BUF_SZ, GFP_DMA | gfp);
if (rx_buff == NULL)
lp->rx_ring[i].base = 0;