]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: lm8323 - use guard notation when acquiring mutexes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2024 05:16:13 +0000 (22:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 15:53:31 +0000 (08:53 -0700)
commit02e4f823ce7838321b0c554ab000e1ceb5849c4e
treef0663da4b58b12adcc60b75a534be029673f878f
parentd1212ac94e8168eb6f8d317d59303c7752f615ff
Input: lm8323 - use guard notation when acquiring mutexes

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-10-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/lm8323.c