Re: [PATCH v3 next 6/6] iio: sca3000: use guard(mutex) to simplify return paths

Andy Shevchenko
2026-02-03T15:23:12Z

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