Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: BCM63xx: delete double assignment

Delete successive assignments to the same location. In each case, the
duplicated assignment is modified to be in line with other nearby code.

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>
Cc: joe@perches.com
Cc: kernel-janitors@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7565/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Julia Lawall and committed by
Ralf Baechle
bbc5367f 91ff7ac0

+2 -2
+2 -2
arch/mips/bcm63xx/irq.c
··· 434 434 irq_stat_addr[0] += PERF_IRQSTAT_3368_REG; 435 435 irq_mask_addr[0] += PERF_IRQMASK_3368_REG; 436 436 irq_stat_addr[1] = 0; 437 - irq_stat_addr[1] = 0; 437 + irq_mask_addr[1] = 0; 438 438 irq_bits = 32; 439 439 ext_irq_count = 4; 440 440 ext_irq_cfg_reg1 = PERF_EXTIRQ_CFG_REG_3368; ··· 443 443 irq_stat_addr[0] += PERF_IRQSTAT_6328_REG(0); 444 444 irq_mask_addr[0] += PERF_IRQMASK_6328_REG(0); 445 445 irq_stat_addr[1] += PERF_IRQSTAT_6328_REG(1); 446 - irq_stat_addr[1] += PERF_IRQMASK_6328_REG(1); 446 + irq_mask_addr[1] += PERF_IRQMASK_6328_REG(1); 447 447 irq_bits = 64; 448 448 ext_irq_count = 4; 449 449 is_ext_irq_cascaded = 1;