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