Re: [PATCH 17/17] Input: tegra-kbc - use guard notation when acquiring mutex and spinlock
From: Thierry Reding
Date: Tue Aug 27 2024 - 05:08:24 EST
On Sat, Aug 24, 2024 at 10:16:21PM GMT, Dmitry Torokhov wrote:
> This 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.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---
> drivers/input/keyboard/tegra-kbc.c | 45 +++++++++++++-----------------
> 1 file changed, 19 insertions(+), 26 deletions(-)
Acked-by: Thierry Reding <treding@xxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature