diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-08-25 22:18:35 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-30 13:08:37 -0400 |
commit | e8c75e2c1c6965d071d50620278df78f65cfe082 (patch) | |
tree | 4e81e11e8a0cb223958d58a32288ad1967d93034 /drivers | |
parent | 3f0a1b58ae1fb72dee348564d03f42cca2338ab8 (diff) | |
download | linux-e8c75e2c1c6965d071d50620278df78f65cfe082.tar.bz2 |
drivers/net/ethernet/tundra/tsi108_eth.c: delete double assignment
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/tundra/tsi108_eth.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/tundra/tsi108_eth.c b/drivers/net/ethernet/tundra/tsi108_eth.c index 277c93e9ff4d..8fa947a2d929 100644 --- a/drivers/net/ethernet/tundra/tsi108_eth.c +++ b/drivers/net/ethernet/tundra/tsi108_eth.c @@ -1359,7 +1359,6 @@ static int tsi108_open(struct net_device *dev) } 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; } |