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