]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
netxen: remove unnecessary setting of skb->dev
authorJon Mason <jdmason@kudzu.us>
Mon, 9 Jul 2012 14:09:27 +0000 (14:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jul 2012 06:24:56 +0000 (23:24 -0700)
skb->dev is being unnecessarily set by the driver on packet recieve.
eth_type_trans already sets skb->dev to the proper value and it is not
referenced anywhere else in the dirver, thus making its setting unnecessary.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Cc: Sony Chacko <sony.chacko@qlogic.com>
Cc: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c

index 8694124ef77d256f73f52e9d01747c52776eb8f0..b2c1b67647712f4f1816f25a2db1095f5c165a88 100644 (file)
@@ -1532,8 +1532,6 @@ static struct sk_buff *netxen_process_rxbuf(struct netxen_adapter *adapter,
        } else
                skb->ip_summed = CHECKSUM_NONE;
 
-       skb->dev = adapter->netdev;
-
        buffer->skb = NULL;
 no_skb:
        buffer->state = NETXEN_BUFFER_FREE;