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 <[email protected]>
---
 drivers/staging/et131x/et131x.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
index ebf5e49..3a733f7 100644
--- a/drivers/staging/et131x/et131x.c
+++ b/drivers/staging/et131x/et131x.c
@@ -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);
-- 
1.7.10.4

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to