diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-06-24 15:23:12 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-06-24 15:26:33 +0000 |
| commit | 31b7d80016a37e4de10f166bc7ff353c7d1ef534 (patch) | |
| tree | b1a22b35b02cf03b01c0dfcb37792db125271fd3 | |
| parent | 9e2d8ec2df414a8019d9c31a9a09a5cc728b4c19 (diff) | |
acpi_support/acpi_ibm.c: move the 'key' definition to the block that uses it
This eliminates a warning from compilation of kernels without
EVDEV_SUPPORT.
Fixes: 7e7f8b2c6641 ("acpi_ibm: Report mic mute key evdev events")
Sponsored by: The FreeBSD Foundation
| -rw-r--r-- | sys/dev/acpi_support/acpi_ibm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi_support/acpi_ibm.c b/sys/dev/acpi_support/acpi_ibm.c index f2a2db2de657..361f243e5a1f 100644 --- a/sys/dev/acpi_support/acpi_ibm.c +++ b/sys/dev/acpi_support/acpi_ibm.c @@ -1510,7 +1510,7 @@ acpi_ibm_eventhandler(struct acpi_ibm_softc *sc, int arg) static void acpi_ibm_notify(ACPI_HANDLE h, UINT32 notify, void *context) { - int event, arg, type, key; + int event, arg, type; device_t dev = context; struct acpi_ibm_softc *sc = device_get_softc(dev); @@ -1538,7 +1538,7 @@ acpi_ibm_notify(ACPI_HANDLE h, UINT32 notify, void *context) acpi_ibm_eventhandler(sc, (arg & 0xff)); #ifdef EVDEV_SUPPORT else { - key = -1; + int key = -1; switch (arg & 0xff) { case IBM_EVENT_BRIGHTNESS_UP: |
