From 32722ad7443c8858b32a7e71797f9265a6da6665 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 24 Mar 2022 00:09:53 +0100 Subject: superio/kbc1100: Fix set but unused variables This fixes building with clang. Change-Id: I865038ffab9cd7be8aa6a42e629f108b55c08f59 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/63061 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Patrick Rudolph --- src/superio/smsc/kbc1100/superio.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/superio/smsc/kbc1100/superio.c b/src/superio/smsc/kbc1100/superio.c index 91457a1ef0..862a77bd13 100644 --- a/src/superio/smsc/kbc1100/superio.c +++ b/src/superio/smsc/kbc1100/superio.c @@ -39,15 +39,11 @@ static void enable_dev(struct device *dev) static void kbc1100_init(struct device *dev) { - struct resource *res0, *res1; - if (!dev->enabled) return; switch (dev->path.pnp.device) { case KBC1100_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(NO_AUX_DEVICE); break; } -- cgit v1.2.3