diff mbox series

[3/3] xive/P9: Use NUM_INT_PRIORITIES in xive_reset()

Message ID 20200624091625.324632-4-clg@kaod.org
State Accepted
Headers show
Series xive/p9: more cleanups | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (68dc040a6540c218d20517764ff5d740a3626c55)

Commit Message

Cédric Le Goater June 24, 2020, 9:16 a.m. UTC
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 hw/xive.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/xive.c b/hw/xive.c
index 845321ed59ff..2c8ffb9ceb02 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -4444,7 +4444,7 @@  static void xive_reset_one(struct xive *x)
 		if (i == 0)
 			continue;
 		eq_firmware = false;
-		for (j = 0; j < 8; j++) {
+		for (j = 0; j < NUM_INT_PRIORITIES; j++) {
 			uint32_t idx = (i << 3) | j;
 
 			eq = xive_get_eq(x, idx);