]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: gscps2 - use guard notation when acquiring spinlock
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 5 Sep 2024 04:17:15 +0000 (21:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 Oct 2024 07:58:16 +0000 (00:58 -0700)
commit44f920069911437dbce84084de02b5cba4ba94f7
tree431e63ae21f980af05b0f7cd64085d037fbd8ecf
parentc91ae81e028f9aa363a38ef46ec5a6ca11a10f10
Input: gscps2 - 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-11-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/gscps2.c