]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: applespi - use guard notation when acquiring spinlock
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2024 05:16:06 +0000 (22:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 15:52:33 +0000 (08:52 -0700)
commit932fc59b30eea5764aa4f1afc63521277258dd36
tree8be8a924ba9bb53ac6bdd81192438b525e0533e6
parent2e969e5b159d03026d524c334ddad5ddd4435fce
Input: applespi - use guard notation when acquiring spinlock

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

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