Re: [PATCH] staging: iio: frequency: ad9832: use guard(mutex) for locking
From: Dan Carpenter
Date: Sat Apr 11 2026 - 04:09:46 EST
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@xxxxxxxxx>
The original code works fine.
We're not accepting this sort of patch for old code unless it fixes
a bug.
regards,
dan carpenter