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>
This commit is contained in:
parent
a74504b729
commit
32722ad744
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue