diff options
author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2021-04-22 22:13:25 +0000 |
---|---|---|
committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2021-04-22 22:13:25 +0000 |
commit | 55eb41bb1fb69429330ea415fb463735ae08da64 (patch) | |
tree | f061763d69ff353f049007e2656d12adbb0e1474 /sys/dev/hyperv/input | |
parent | 557c4521bbb2517bd0552a15cb9429e524c3c0fd (diff) | |
download | src-55eb41bb1fb69429330ea415fb463735ae08da64.tar.gz src-55eb41bb1fb69429330ea415fb463735ae08da64.zip |
hv_kbd: Fix build with EVDEV_SUPPORT kernel option disabled.
Reported by: olivier
MFC with: e4643aa4c4ff
Diffstat (limited to 'sys/dev/hyperv/input')
-rw-r--r-- | sys/dev/hyperv/input/hv_kbd.c | 3 |
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)) |