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

Harshit Mogalapalli
2026-02-03T16:01:53Z

Hi Andy,

On 03/02/26 20:53, Andy Shevchenko wrote:
> 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.
>

Thanks, I will do that, I agree it would look simpler that way.

Regards,
Harshit