]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: ps2-gpio - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 5 Sep 2024 04:17:19 +0000 (21:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 Oct 2024 07:58:16 +0000 (00:58 -0700)
commit31b6b9a46d0af9c1ec7133e41302b3ef76016b04
tree5d9224aa361bfba014228e70ea10d76356b04455
parent7dc406b736b9acf01379d2235d97bb4873b504e7
Input: ps2-gpio - 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/20240905041732.2034348-15-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/ps2-gpio.c