回复: 回复: [RFC PATCH 3/4] regulator: rts490x: Add driver for on-die regulators
From: 周寅
Date: Tue Sep 22 2026 - 06:07:12 EST
On Mon, Sep 21, 2026 at 04:07:02PM +0200, Krzysztof Kozlowski wrote:
> I missed the __free, but then why do you declare __free variable with
> NULL as constructor? Don't grow this pattern. See cleanup.h (or
> discussions on the lists).
Thanks for the clarification. I will initialize both __free variables
directly at declaration in the next revision. I also reviewed the rest
of the series for similar cleanup issues and found a couple of functions
that mix goto-based resource cleanup with guard(). I will fix those in
the next revision as well.
Best regards,
Zain