summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2012-07-09 14:09:30 +0000
committerDavid S. Miller <davem@davemloft.net>2012-07-10 23:24:57 -0700
commitad95dfc72a4be5c2b6914cfeca4592ddcd9ea8b5 (patch)
tree1a0a38a7921984815db6cc2ca9c98f6cc12e4c49 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c
parentb06b66c05babe3483a585508655c1edb9e07f8dc (diff)
downloadlwn-ad95dfc72a4be5c2b6914cfeca4592ddcd9ea8b5.tar.gz
lwn-ad95dfc72a4be5c2b6914cfeca4592ddcd9ea8b5.zip
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/net/ethernet/qlogic/qlcnic/qlcnic_init.c')
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c2
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,
skb_checksum_none_assert(skb);
}
- skb->dev = adapter->netdev;
-
buffer->skb = NULL;
return skb;