Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95f2bce5 authored by Jon Mason's avatar Jon Mason Committed by David S. Miller
Browse files

netxen: remove unnecessary setting of skb->dev



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: default avatarJon Mason <jdmason@kudzu.us>
Cc: Sony Chacko <sony.chacko@qlogic.com>
Cc: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b6457acf
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -1532,8 +1532,6 @@ static struct sk_buff *netxen_process_rxbuf(struct netxen_adapter *adapter,
	} else
	} else
		skb->ip_summed = CHECKSUM_NONE;
		skb->ip_summed = CHECKSUM_NONE;


	skb->dev = adapter->netdev;

	buffer->skb = NULL;
	buffer->skb = NULL;
no_skb:
no_skb:
	buffer->state = NETXEN_BUFFER_FREE;
	buffer->state = NETXEN_BUFFER_FREE;