diff options
author | Jon Mason <jdmason@kudzu.us> | 2012-07-09 10:09:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-11 02:24:57 -0400 |
commit | ad95dfc72a4be5c2b6914cfeca4592ddcd9ea8b5 (patch) | |
tree | 1a0a38a7921984815db6cc2ca9c98f6cc12e4c49 /drivers | |
parent | b06b66c05babe3483a585508655c1edb9e07f8dc (diff) |
qlcnic: remove unnecessary setting of skb->dev
skb->dev is being unnecessarily set before calling eth_type_trans.
eth_type_trans already sets skb->dev to the proper value, thus making this
unnecessary.
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Cc: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Cc: Sony Chacko <sony.chacko@qlogic.com>
Cc: linux-driver@qlogic.com
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c index 8620b696aca8..0bcda9c51e9b 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c | |||
@@ -1488,8 +1488,6 @@ static struct sk_buff *qlcnic_process_rxbuf(struct qlcnic_adapter *adapter, | |||
1488 | skb_checksum_none_assert(skb); | 1488 | skb_checksum_none_assert(skb); |
1489 | } | 1489 | } |
1490 | 1490 | ||
1491 | skb->dev = adapter->netdev; | ||
1492 | |||
1493 | buffer->skb = NULL; | 1491 | buffer->skb = NULL; |
1494 | 1492 | ||
1495 | return skb; | 1493 | return skb; |