]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: synaptics-rmi4 - use guard notation when pausing serio port in F03
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 5 Sep 2024 04:17:13 +0000 (21:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 Oct 2024 07:58:15 +0000 (00:58 -0700)
commit69a2229b05046eb42258b45df1f43248de8a3472
tree8e15e45eb85b85f37134413271a520eb61681ff9
parentbc656ececfac95a9ff9a58cbfc3042228c18c857
Input: synaptics-rmi4 - use guard notation when pausing serio port in F03

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