Input: maple_keyb - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 28 Oct 2024 05:50:18 +0000 (22:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Nov 2024 22:17:32 +0000 (14:17 -0800)
commit6b6b40ff05ab43b603abd7ae1821892307421d49
treeb8490439d409ba693c14ee87a5f44101d44cd03d
parent229ba714e52f7f29f41c1aa2e9f49feef3629322
Input: maple_keyb - use guard notation when acquiring mutex

Using guard notation 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/Zx8mGiWOw1Av28TX@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/maple_keyb.c