From 2a86ef5bb8565c110a66426273e11cfe3dc24087 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 29 Jul 2022 10:53:14 +0200 Subject: superio/nuvoton/nct6687d: Fix unexpected expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Expression after a case statement are not allowed. This fixes building with clang. Change-Id: Ie369454f10b515aa5601a5e78330e12f4b7a5e4c Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/66265 Tested-by: build bot (Jenkins) Reviewed-by: Michał Żygowski Reviewed-by: Felix Held --- src/superio/nuvoton/nct6687d/superio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/superio/nuvoton/nct6687d/superio.c') diff --git a/src/superio/nuvoton/nct6687d/superio.c b/src/superio/nuvoton/nct6687d/superio.c index 4795659118..a2eea8c50f 100644 --- a/src/superio/nuvoton/nct6687d/superio.c +++ b/src/superio/nuvoton/nct6687d/superio.c @@ -26,14 +26,14 @@ static void nct6687d_init(struct device *dev) if (!dev->enabled) return; + uint8_t byte; + uint8_t power_status; switch (dev->path.pnp.device) { /* TODO: Might potentially need code for EC, GPIOs, etc. */ case NCT6687D_KBC: pc_keyboard_init(PROBE_AUX_DEVICE); break; case NCT6687D_ACPI: - uint8_t byte; - uint8_t power_status; /* Set power state after power fail */ power_status = get_uint_option("power_on_after_fail", CONFIG_MAINBOARD_POWER_FAILURE_STATE); -- cgit v1.2.3