summary refs log tree commit diff stats
path: root/hw/gpio
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2025-04-07 10:26:41 +0200
committerMarkus Armbruster <armbru@redhat.com>2025-04-24 09:33:24 +0200
commit720a0e417ef0814d90aa884096a643b02ee854dc (patch)
tree3973f28e1bea5ac141daecf7fd73da9e06a0a1cc /hw/gpio
parent91d0d16b44c93fa82cf76ae12990ce3aa96096c9 (diff)
downloadfocaccia-qemu-720a0e417ef0814d90aa884096a643b02ee854dc.tar.gz
focaccia-qemu-720a0e417ef0814d90aa884096a643b02ee854dc.zip
cleanup: Re-run return_directly.cocci
Coccinelle's indentation of virt_create_plic() results in a long line.
Avoid that by mimicking the old indentation manually.

Don't touch tests/tcg/mips/user/.  I'm not sure these files are ours
to make style cleanups on.  They might be imported third-party code,
which we should leave as is to not complicate future updates.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250407082643.2310002-2-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/gpio')
-rw-r--r--hw/gpio/pca9554.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/gpio/pca9554.c b/hw/gpio/pca9554.c
index fe03bb4b5e..7301fce934 100644
--- a/hw/gpio/pca9554.c
+++ b/hw/gpio/pca9554.c
@@ -118,11 +118,8 @@ static void pca9554_write(PCA9554State *s, uint8_t reg, uint8_t data)
 static uint8_t pca9554_recv(I2CSlave *i2c)
 {
     PCA9554State *s = PCA9554(i2c);
-    uint8_t ret;
 
-    ret = pca9554_read(s, s->pointer & 0x3);
-
-    return ret;
+    return pca9554_read(s, s->pointer & 0x3);
 }
 
 static int pca9554_send(I2CSlave *i2c, uint8_t data)