[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 23/50] lasi: checkpatch fixes
From: |
Mark Cave-Ayland |
Subject: |
[PATCH 23/50] lasi: checkpatch fixes |
Date: |
Thu, 21 Apr 2022 20:30:33 +0100 |
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
hw/hppa/lasi.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c
index 88c3791eb6..3b77fba1c6 100644
--- a/hw/hppa/lasi.c
+++ b/hw/hppa/lasi.c
@@ -169,10 +169,11 @@ static MemTxResult lasi_chip_write_with_attrs(void
*opaque, hwaddr addr,
break;
case LASI_IMR:
s->imr = val;
- if (((val & LASI_IRQ_BITS) != val) && (val != 0xffffffff))
+ if (((val & LASI_IRQ_BITS) != val) && (val != 0xffffffff)) {
qemu_log_mask(LOG_GUEST_ERROR,
"LASI: tried to set invalid %lx IMR value.\n",
(unsigned long) val);
+ }
break;
case LASI_IPR:
/* Any write to IPR clears the register. */
@@ -200,8 +201,9 @@ static MemTxResult lasi_chip_write_with_attrs(void *opaque,
hwaddr addr,
break;
case LASI_PCR:
- if (val == 0x02) /* immediately power off */
+ if (val == 0x02) { /* immediately power off */
qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);
+ }
break;
case LASI_ERRLOG:
s->errlog = val;
--
2.20.1
- [PATCH 15/50] dino.h: add defines for DINO IRQ numbers, (continued)
- [PATCH 15/50] dino.h: add defines for DINO IRQ numbers, Mark Cave-Ayland, 2022/04/21
- [PATCH 17/50] dino: wire up serial IRQ using a qdev GPIO in machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 20/50] dino: use numerical constant for iar0 and iar1 reset values, Mark Cave-Ayland, 2022/04/21
- [PATCH 16/50] dino: define IRQ inputs as qdev GPIOs, Mark Cave-Ayland, 2022/04/21
- [PATCH 19/50] hppa: move dino_init() from dino.c to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 14/50] machine.c: map DINO device during board configuration, Mark Cave-Ayland, 2022/04/21
- [PATCH 21/50] dino: move DINO HPA constants from hppa_hardware.h to dino.h, Mark Cave-Ayland, 2022/04/21
- [PATCH 24/50] lasi: move memory region initialisation to new lasi_init() function, Mark Cave-Ayland, 2022/04/21
- [PATCH 26/50] lasi: move initialisation of iar and rtc to new lasi_reset() function, Mark Cave-Ayland, 2022/04/21
- [PATCH 27/50] lasi: move LASIState and associated QOM structures to lasi.h, Mark Cave-Ayland, 2022/04/21
- [PATCH 23/50] lasi: checkpatch fixes,
Mark Cave-Ayland <=
- [PATCH 22/50] dino: move from hw/hppa to hw/pci-host, Mark Cave-Ayland, 2022/04/21
- [PATCH 25/50] lasi: move register memory mapping from lasi.c to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 28/50] lasi: replace lasi_get_irq() with defined constants, Mark Cave-Ayland, 2022/04/21
- [PATCH 29/50] lasi: define IRQ inputs as qdev GPIOs, Mark Cave-Ayland, 2022/04/21
- [PATCH 30/50] lasi: use qdev GPIOs to wire up IRQs in lasi_initfn(), Mark Cave-Ayland, 2022/04/21
- [PATCH 31/50] lasi: fix serial port initialisation, Mark Cave-Ayland, 2022/04/21
- [PATCH 32/50] lasi: update lasi_initfn() to return LASIState, Mark Cave-Ayland, 2022/04/21
- [PATCH 34/50] lasi: move parallel port initialisation to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 36/50] lasi: move PS2 initialisation to machine.c, Mark Cave-Ayland, 2022/04/21
- [PATCH 33/50] lasi: move LAN initialisation to machine.c, Mark Cave-Ayland, 2022/04/21