summaryrefslogtreecommitdiff
path: root/src/superio
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-03-24 00:09:53 +0100
committerArthur Heymans <arthur@aheymans.xyz>2022-05-11 06:02:48 +0000
commit32722ad7443c8858b32a7e71797f9265a6da6665 (patch)
treec876cda31a95a8f6791806e804e99792f6696938 /src/superio
parenta74504b729eb52e898487e9f124ed054e88f7927 (diff)
superio/kbc1100: Fix set but unused variables
This fixes building with clang. Change-Id: I865038ffab9cd7be8aa6a42e629f108b55c08f59 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63061 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/superio')
-rw-r--r--src/superio/smsc/kbc1100/superio.c4
1 files changed, 0 insertions, 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;
}