Re: [PATCH v5 next 5/7] iio: sca3000: use guard(mutex) to simplify return paths
From: Andy Shevchenko
Date: Thu Feb 05 2026 - 11:26:16 EST
On Thu, Feb 05, 2026 at 05:12:11AM -0800, Harshit Mogalapalli wrote:
> Switch sca3000_stop_all_interrupts() to use guard(mutex) to simplify the
> error paths without needing a goto.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
> ---
> v4->v5: rebase it accordingly as we didn't change label "error_ret" in
> the previous patch.
I hope you see the difference and how the whole series gets better.
> ---
--
With Best Regards,
Andy Shevchenko