target-s390x: Fix wrong comparison in interrupt handling

gcc with -Wextra complains about an ordered pointer comparison:

target-s390x/helper.c:660:27: warning:
 ordered comparison of pointer with integer zero [-Wextra]

Obviously the index was missing in the code.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Stefan Weil 2013-02-03 21:33:16 +01:00 committed by Anthony Liguori
parent 0123c48636
commit b22dd1243f

View File

@ -657,7 +657,7 @@ static void do_io_interrupt(CPUS390XState *env)
cpu_unmap_lowcore(lowcore); cpu_unmap_lowcore(lowcore);
env->io_index[isc]--; env->io_index[isc]--;
if (env->io_index >= 0) { if (env->io_index[isc] >= 0) {
disable = 0; disable = 0;
} }
break; break;