hw/intc/sh_intc: Use array index instead of pointer arithmetics
commit12201fe38a592695eea647c9600d08a4622c1431
authorBALATON Zoltan <balaton@eik.bme.hu>
Fri, 29 Oct 2021 21:02:09 +0000 (29 23:02 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 30 Oct 2021 16:39:37 +0000 (30 18:39 +0200)
tree16b832e10f1f345bc21434483a1cb688c9340a11
parent46ea1f8236ffdf80c52dad79ee7d2dc18ed5eda1
hw/intc/sh_intc: Use array index instead of pointer arithmetics

Address of element i is one word thus clearer than array + i.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <f49c9b1dee1fcaf374b092d862a6821907d5fcdc.1635541329.git.balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/intc/sh_intc.c