]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: adp5589-keys - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2024 05:16:05 +0000 (22:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 15:52:33 +0000 (08:52 -0700)
commit2e969e5b159d03026d524c334ddad5ddd4435fce
tree2224385d279eb0dd19a3e1f7e5dc68a951557eeb
parent2e26a761619ed437b1e1b22c27eabdffb708c9f2
Input: adp5589-keys - 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-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/adp5589-keys.c