From: Julia Lawall Date: Sat, 25 Aug 2012 22:18:35 +0000 (+0000) Subject: drivers/net/ethernet/tundra/tsi108_eth.c: delete double assignment X-Git-Tag: upstream/snapshot3+hdmi~6565^2~267 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8c75e2c1c6965d071d50620278df78f65cfe082;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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/) // @@ expression i; @@ *i = ...; i = ...; // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/tundra/tsi108_eth.c b/drivers/net/ethernet/tundra/tsi108_eth.c index 277c93e..8fa947a 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; }