Re: [PATCH v3 next 6/6] iio: sca3000: use guard(mutex) to simplify return paths
From: Andy Shevchenko
Date: Tue Feb 03 2026 - 10:23:58 EST
On Tue, Feb 03, 2026 at 04:20:50AM -0800, Harshit Mogalapalli wrote:
> Switch sca3000_stop_all_interrupts() to use guard(mutex) to simplify the
> error paths without needing a goto.
...
> - if (ret)
> + if (!ret)
Leave the standard pattern to check for errors first.
--
With Best Regards,
Andy Shevchenko