]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: xilinx_ps2 - use guard notation when acquiring spinlock
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 5 Sep 2024 04:17:29 +0000 (21:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 Oct 2024 08:04:15 +0000 (01:04 -0700)
commitc6dcd360384e47fad0c6d228d70a1543192b895f
treef863eb6cfd2b00db36305a6f854ef9a08289e0a3
parent54f951736d88e1c405b305a01fc921bd31907631
Input: xilinx_ps2 - 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-25-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/xilinx_ps2.c