Input: serio - use guard notation when acquiring mutexes and spinlocks
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 5 Sep 2024 04:17:24 +0000 (21:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 Oct 2024 08:04:14 +0000 (01:04 -0700)
commit924c5eeb17490136d9ec688b0926bbae27eb0a1f
treeb0d7c2363e8b0a40dbdc67be8e0490e38054fd50
parentf7d15dcc249e54aedcfc71dddb6418b0bb2b8531
Input: serio - use guard notation when acquiring mutexes and spinlocks

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-20-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/serio.c