summaryrefslogtreecommitdiffstats
path: root/drivers/net/tehuti.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-03-30 07:02:15 +0200
committerDavid S. Miller <davem@davemloft.net>2010-03-31 08:51:10 +0200
commitb05b7d9563f11bf3d7b7f3f53cd74cbfab107355 (patch)
tree1d8a95ba1373a5ec8f1f591751bd8bc2dffd2229 /drivers/net/tehuti.c
parentAdd hotplug support to mcp251x driver (diff)
downloadlinux-b05b7d9563f11bf3d7b7f3f53cd74cbfab107355.tar.xz
linux-b05b7d9563f11bf3d7b7f3f53cd74cbfab107355.zip
net: remove redundant code
eth_type_trans(skb, netdev) does the "skb->dev = netdev;" initialization, we can remove it from various network drivers. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tehuti.c')
-rw-r--r--drivers/net/tehuti.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c
index f5493092521a..068a47174fca 100644
--- a/drivers/net/tehuti.c
+++ b/drivers/net/tehuti.c
@@ -1303,7 +1303,6 @@ static int bdx_rx_receive(struct bdx_priv *priv, struct rxd_fifo *f, int budget)
priv->net_stats.rx_bytes += len;
skb_put(skb, len);
- skb->dev = priv->ndev;
skb->ip_summed = CHECKSUM_UNNECESSARY;
skb->protocol = eth_type_trans(skb, priv->ndev);