]> git.baikalelectronics.ru Git - kernel.git/commit
vt: keyboard, use find_next_bit in kbd_match
authorJiri Slaby <jslaby@suse.cz>
Thu, 29 Oct 2020 11:32:21 +0000 (12:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Nov 2020 15:43:39 +0000 (16:43 +0100)
commit976355620e2759fcd19fd68a101ef6760028c61c
tree40849526e88aa28428a573b9827d32530af848ac
parent9990df2c7cd191e773f5a171376b2de331396987
vt: keyboard, use find_next_bit in kbd_match

Instead of a 'for' loop with 'test_bit's to find a bit in a range, use
find_next_bit to achieve the same in a simpler and faster manner.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20201029113222.32640-16-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c