Input: libps2 - use guard notation when temporarily pausing serio ports
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 5 Sep 2024 04:17:07 +0000 (21:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 Oct 2024 07:58:14 +0000 (00:58 -0700)
commit74c0b4c0ddf751578ce04e85075afbf7d6ef4229
treefe5d9548b7aba59378973a420860117b98e9ca64
parent0e45a09a1da0872786885c505467aab8fb29b5b4
Input: libps2 - use guard notation when temporarily pausing serio ports

Using guard notation makes the code more compact and error handling
more robust by ensuring that serio ports are resumed in all code paths
when control leaves critical section.

Link: https://lore.kernel.org/r/20240905041732.2034348-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/libps2.c