Re: [PATCH v2 next 5/5] iio: sca3000: use guard(mutex) to simplify return paths
From: David Lechner
Date: Mon Feb 02 2026 - 18:10:05 EST
On 2/2/26 1:40 PM, Harshit Mogalapalli wrote:
> Switch sca3000_stop_all_interrupts() to use guard(mutex).
Should always say why this patch should be considered in the commit
message. E.g. in this one we simplify the code by avoiding a goto.
>
> Suggested-by: Jonathan Cameron <jic23@xxxxxxxxxx>
> Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@xxxxxxxxxx>
> ---
Reviewed-by: David Lechner <dlechner@xxxxxxxxxxx>