[PATCH 1/2] i3c: master: Fix confusing cleanup.h syntax

Alexandre Belloni alexandre.belloni at bootlin.com
Fri Dec 12 15:07:20 PST 2025


On Mon, 08 Dec 2025 03:07:51 +0100, Krzysztof Kozlowski wrote:
> Initializing automatic __free variables to NULL without need (e.g.
> branches with different allocations), followed by actual allocation is
> in contrary to explicit coding rules guiding cleanup.h:
> 
> "Given that the "__free(...) = NULL" pattern for variables defined at
> the top of the function poses this potential interdependency problem the
> recommendation is to always define and assign variables in one statement
> and not group variable definitions at the top of the function when
> __free() is used."
> 
> [...]

Applied, thanks!

[1/2] i3c: master: Fix confusing cleanup.h syntax
      https://git.kernel.org/abelloni/c/cc3b18f9fede
[2/2] i3c: adi: Fix confusing cleanup.h syntax
      https://git.kernel.org/abelloni/c/136209e6bd98

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the linux-i3c mailing list