]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: n64joy - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Sep 2024 04:31:01 +0000 (21:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 16:07:31 +0000 (09:07 -0700)
commitd68ed9b580176d5df41072900afa164edc879282
tree36992892200c2625e7cda5149f84f85b4eefc4cc
parent63ade96711c7a0bb7226f3b029e800fafccd4b0b
Input: n64joy - 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/20240904043104.1030257-5-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/n64joy.c