Re: [PATCH v5 next 5/7] iio: sca3000: use guard(mutex) to simplify return paths

From: Harshit Mogalapalli

Date: Thu Feb 05 2026 - 11:40:13 EST


Hi Andy,

On 05/02/26 21:56, Andy Shevchenko wrote:
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.


Yes I do, thank you very much for the guidance on this :)


Thanks,
Harshit
---