aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv/input
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hyperv/input')
-rw-r--r--sys/dev/hyperv/input/hv_kbd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/hyperv/input/hv_kbd.c b/sys/dev/hyperv/input/hv_kbd.c
index 52ce621b2a89..53aacda7fbcb 100644
--- a/sys/dev/hyperv/input/hv_kbd.c
+++ b/sys/dev/hyperv/input/hv_kbd.c
@@ -269,9 +269,8 @@ hvkbd_read_char_locked(keyboard_t *kbd, int wait)
uint32_t action;
keystroke ks;
hv_kbd_sc *sc = kbd->kb_data;
-#ifdef EVDEV_SUPPORT
int keycode;
-#endif
+
HVKBD_LOCK_ASSERT();
if (!KBD_IS_ACTIVE(kbd) || !hv_kbd_prod_is_ready(sc))