Re: [PATCH] Input: bcm5974 - use guard notation when acquiring mutex

From: rydberg
Date: Sun Aug 25 2024 - 05:09:07 EST


On Sat, Aug 24, 2024 at 10:29:56PM -0700, Dmitry Torokhov wrote:
> This makes the code more compact and error handling more robust
> by ensuring that mutexes are released in all code paths when control
> leaves critical section.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---
> drivers/input/mouse/bcm5974.c | 35 +++++++++++++----------------------
> 1 file changed, 13 insertions(+), 22 deletions(-)
>

Thanks Dmitry,

Acked-by: Henrik Rydberg <rydberg@xxxxxxxxxxx>