From e5cfed2c244ecb648c323a3277900d2c631b4703 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 11 Nov 2023 17:01:56 +0100 Subject: [PATCH] IT86x1F: Move the declaration of effective_ldn outside the case block. --- src/sio/sio_it86x1f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sio/sio_it86x1f.c b/src/sio/sio_it86x1f.c index 91dcc756b..d53e78050 100644 --- a/src/sio/sio_it86x1f.c +++ b/src/sio/sio_it86x1f.c @@ -394,6 +394,7 @@ static void it86x1f_pnp_write_vendor_reg(uint8_t ld, uint8_t reg, uint8_t val, void *priv) { it86x1f_t *dev = (it86x1f_t *) priv; + uint8_t effective_ldn; it86x1f_log("IT86x1F: write_vendor_reg(%X, %02X, %02X)\n", ld, reg, val); @@ -450,7 +451,6 @@ it86x1f_pnp_write_vendor_reg(uint8_t ld, uint8_t reg, uint8_t val, void *priv) case 0xf0 ... 0xff: /* Translate GPIO LDN to 7 for the switch block. */ - uint8_t effective_ldn; if (ld == dev->gpio_ldn) effective_ldn = 7; else if (ld == 7)