]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: pxa27x_keypad - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2024 05:16:18 +0000 (22:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 15:58:57 +0000 (08:58 -0700)
commitb8a3e18141659d72d1b5500e5bcc6b81f19477af
tree65c4aca13a11584e507cc2ab0e65943dd82de667
parent9e09354cb6f6858e3e54627c2e4f49d07bfae45e
Input: pxa27x_keypad - use guard notation when acquiring mutex

This makes the code more compact and error handling more robust
by ensuring that mutexes are released in all code paths when control
leaves critical section.

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