Since the raw keymap already has a capacity of holding all present keys,
authoranton <anton@openbsd.org>
Sun, 22 Aug 2021 07:20:40 +0000 (07:20 +0000)
committeranton <anton@openbsd.org>
Sun, 22 Aug 2021 07:20:40 +0000 (07:20 +0000)
commitc9c68f2d7978180081687b5774bbd43133f6813a
tree1396c6c17e0380e44c00ac818a0de483da1361a0
parent6c41881a0a6020d718fe1e1a884e5933c9bb6a88
Since the raw keymap already has a capacity of holding all present keys,
use it as a lookup table using the bit as the index. Removes the need to
linearly scan the same keymap during handling of a key press, not that
performance matters here since the length of the keymap is small but the
code gets a bit simpler and one struct becomes redundant.

While here, fix two incorrect conditionals in ucc_parse_hid() which
compared two different quantities.
sys/dev/usb/ucc.c