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