Re: [PATCH] staging: iio: frequency: ad9832: use guard(mutex) for locking

Dan Carpenter
2026-04-11T08:09:41Z

On Sat, Apr 11, 2026 at 12:55:04PM +0530, Advaith Neelacantan wrote:
> Replace mutex lock/unlock pairs with
>
> guard(mutex) for automatic scope-based locking.
>
> Simplifies code by removing need to manually unlock.
>
> Signed-off-by: Advaith Neelacantan <advaith.neelacantan@gmail.com>

The original code works fine.

We're not accepting this sort of patch for old code unless it fixes
a bug.

regards,
dan carpenter