]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: hilkbd - use guard notation when acquiring spinlock
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 25 Oct 2024 01:43:44 +0000 (18:43 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Nov 2024 22:17:20 +0000 (14:17 -0800)
commitdda8fdb033f48e759ff190c59aa266905ecba3dd
tree38b4dc533f4baef37e2bac26262fabf9a8288c8e
parentcbdc3f95cdf817e6adc5c783464658d30e9ccb61
Input: hilkbd - use guard notation when acquiring spinlock

Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.

Link: https://lore.kernel.org/r/Zxr30BpPobpM65vO@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/hilkbd.c