Re: [PATCH] da8xx-cfgchip.c: replace of_node_put with __free improves cleanup
From: David Lechner
Date: Sat Jul 20 2024 - 12:18:44 EST
On 7/20/24 10:24 AM, David Hunter wrote:
> The use of the __free function allows the cleanup to be based on scope
> instead of on another function called later. This makes the cleanup
> automatic and less susceptible to errors later.
>
> This code was compiled without errors or warnings.
>
> Signed-off-by: David Hunter <david.hunter.linux@xxxxxxxxx>
> ---
Reviewed-by: David Lechner <david@xxxxxxxxxxxxxx>