]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: xpad - use guard notation when acquiring mutex and spinlock
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Sep 2024 04:31:03 +0000 (21:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 16:07:32 +0000 (09:07 -0700)
commit45a81459722aa48de343910001355b0108b9c16b
treecdad151eeaeef6c8addbc30c84bca02b3c96079f
parent10068a36b01dc25f598259ffd0562f474ae3ed94
Input: xpad - use guard notation when acquiring mutex and spinlock

Using guard notation 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/20240904043104.1030257-7-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c