bus: omap_l3_noc: un-obfuscate l3_targ address computation
authorNishanth Menon <nm@ti.com>
Fri, 11 Apr 2014 16:24:42 +0000 (11:24 -0500)
committerNishanth Menon <nm@ti.com>
Mon, 5 May 2014 19:33:08 +0000 (14:33 -0500)
just simplify derefencing that is equivalent.

Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Darren Etheridge <detheridge@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
drivers/bus/omap_l3_noc.c

index c8facb0..f7d3bf4 100644 (file)
@@ -76,7 +76,7 @@ static irqreturn_t l3_interrupt_handler(int irq, void *_l3)
                        err_src = __ffs(err_reg);
 
                        /* Read the stderrlog_main_source from clk domain */
-                       l3_targ_base = base + *(l3_targ[i] + err_src);
+                       l3_targ_base = base + l3_targ[i][err_src];
                        l3_targ_stderr = l3_targ_base + L3_TARG_STDERRLOG_MAIN;
                        l3_targ_slvofslsb = l3_targ_base +
                                            L3_TARG_STDERRLOG_SLVOFSLSB;