From: Julia Lawall Date: Tue, 26 Oct 2010 10:25:43 +0000 (+0200) Subject: drivers/ata/pata_octeon_cf.c: delete double assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f2543790875b088e2a58aa12ee1ac20a75d6126d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drivers/ata/pata_octeon_cf.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: Jeff Garzik --- diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c index 74b829817891..fa1b95a9a7ff 100644 --- a/drivers/ata/pata_octeon_cf.c +++ b/drivers/ata/pata_octeon_cf.c @@ -652,8 +652,6 @@ static irqreturn_t octeon_cf_interrupt(int irq, void *dev_instance) struct octeon_cf_data *ocd; ap = host->ports[i]; - ocd = ap->dev->platform_data; - ocd = ap->dev->platform_data; cf_port = ap->private_data; dma_int.u64 =