]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: ati_remote2 - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Sep 2024 04:42:22 +0000 (21:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 16:10:35 +0000 (09:10 -0700)
commit61bbcc9fa144433e6fc88e66f3d4463e10e556de
tree63511a3b8035a2e25921b966e772d8893594f36c
parentf9f37373ff02b64a46b266d25d680a061ed13a8d
Input: ati_remote2 - 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.

Reviewed-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240904044244.1042174-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/ati_remote2.c