]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: kxtj9 - use guard notation when acquiring mutex/disabling irq
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Sep 2024 04:42:26 +0000 (21:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 16:10:36 +0000 (09:10 -0700)
commit6bbf7efc40f7d43383bac63537a8d4e6253a2e98
tree94fb54af1b236981974cd2bc2a1c9ce21fa67702
parent1313f0ad814e816a96913deee1ac4fe776723cbc
Input: kxtj9 - use guard notation when acquiring mutex/disabling irq

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

Reviewed-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240904044244.1042174-7-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/kxtj9.c