Re: [PATCH v2 4/4] iio: magnetometer: rm3100: Use guard(mutex)() in rm3100_trigger_handler()

Maxwell Doose
2026-04-28T19:09:45Z

On Tue, Apr 28, 2026 at 12:39 PM Jonathan Cameron <jic23@kernel.org> wrote:
>
> I'd prefer a helper function with straight forward guard() + returns.
> Then you can have a single exit point from the outer function.
>
> ret = helper()
> if (ret)
> return ret;
>
> other stuff.
>

Sounds like a great idea, I'm eager to start when I've got time.

best regards,
maxwell