Re: [PATCH v2 2/6] staging: iio: ad9832: convert to guard(mutex)

From: Andy Shevchenko

Date: Tue Dec 30 2025 - 17:51:33 EST


On Tue, Dec 30, 2025 at 10:35 PM Tomas Borquez <tomasborquez13@xxxxxxxxx> wrote:
>
> Use guard(mutex) for cleaner lock handling and simpler error paths.

...

Don't remember if it was in the previous rounds of review or somewhere
else, but Jonathan (? IIRC) suggestd to use

ret = foo(...);
if (ret)
return ret;
break;
...
return len;

However, this one just duplicates what is already in use. Have you
checked the bloat-o-meter before and after and see if there is any
difference in the compiled object file?

--
With Best Regards,
Andy Shevchenko