drivers/net/ethernet/tundra/tsi108_eth.c: delete double assignment
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 25 Aug 2012 22:18:35 +0000 (22:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2012 17:08:37 +0000 (13:08 -0400)
Delete successive assignments to the same location.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression i;
@@

*i = ...;
 i = ...;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/tundra/tsi108_eth.c

index 277c93e9ff4d7201470fd0fdea50a691c28f24de..8fa947a2d9290f2dd7dc612968199aa0f46fdde1 100644 (file)
@@ -1358,7 +1358,6 @@ static int tsi108_open(struct net_device *dev)
                        break;
                }
 
-               data->rxskbs[i] = skb;
                data->rxskbs[i] = skb;
                data->rxring[i].buf0 = virt_to_phys(data->rxskbs[i]->data);
                data->rxring[i].misc = TSI108_RX_OWN | TSI108_RX_INT;