Skip to content

Commit

Permalink
staging: et131x: Remove assignment of skb->dev
Browse files Browse the repository at this point in the history
The call eth_type_trans() sets skb->dev to netdev, so there's
no needto set it before the call.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Feb 18, 2013
1 parent 2e38027 commit bf7edd8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/et131x/et131x.c
Original file line number Diff line number Diff line change
Expand Up @@ -2730,7 +2730,6 @@ static struct rfd *nic_rx_pkts(struct et131x_adapter *adapter)
rx_local->fbr[ring_index]->virt[buff_index],
rfd->len);

skb->dev = adapter->netdev;
skb->protocol = eth_type_trans(skb, adapter->netdev);
skb->ip_summed = CHECKSUM_NONE;
netif_rx_ni(skb);
Expand Down

0 comments on commit bf7edd8

Please sign in to comment.