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

From: Maxwell Doose

Date: Tue Apr 28 2026 - 15:09:58 EST


On Tue, Apr 28, 2026 at 12:39 PM Jonathan Cameron <jic23@xxxxxxxxxx> 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