hv_kbd: Fix build with EVDEV_SUPPORT kernel option disabled.

Reported by:	olivier
MFC with:	e4643aa4c4
This commit is contained in:
Vladimir Kondratyev 2021-04-23 01:13:25 +03:00
parent 557c4521bb
commit 55eb41bb1f

View File

@ -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))