Skip to content

Commit bbc5367

Browse files
JuliaLawallralfbaechle
authored andcommitted
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>
1 parent 91ff7ac commit bbc5367

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/mips/bcm63xx/irq.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ static void bcm63xx_init_irq(void)
434434
irq_stat_addr[0] += PERF_IRQSTAT_3368_REG;
435435
irq_mask_addr[0] += PERF_IRQMASK_3368_REG;
436436
irq_stat_addr[1] = 0;
437-
irq_stat_addr[1] = 0;
437+
irq_mask_addr[1] = 0;
438438
irq_bits = 32;
439439
ext_irq_count = 4;
440440
ext_irq_cfg_reg1 = PERF_EXTIRQ_CFG_REG_3368;
@@ -443,7 +443,7 @@ static void bcm63xx_init_irq(void)
443443
irq_stat_addr[0] += PERF_IRQSTAT_6328_REG(0);
444444
irq_mask_addr[0] += PERF_IRQMASK_6328_REG(0);
445445
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);
447447
irq_bits = 64;
448448
ext_irq_count = 4;
449449
is_ext_irq_cascaded = 1;

0 commit comments

Comments
 (0)