summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/mips/mips_int.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/mips/mips_int.c b/hw/mips/mips_int.c
index 74cf587d5b..5ebc9618a7 100644
--- a/hw/mips/mips_int.c
+++ b/hw/mips/mips_int.c
@@ -35,8 +35,9 @@ static void cpu_mips_irq_request(void *opaque, int irq, int level)
CPUState *cs = CPU(cpu);
bool locked = false;
- if (irq < 0 || irq > 7)
+ if (irq < 0 || irq > 7) {
return;
+ }
/* Make sure locking works even if BQL is already held by the caller */
if (!qemu_mutex_iothread_locked()) {