Re: [PATCH 2/2] leds: max5970: use cleanup facility for fwnode_handle led_node

From: Lee Jones
Date: Thu Oct 31 2024 - 12:14:44 EST


On Sat, 19 Oct 2024, Javier Carrasco wrote:

> Add the automatic cleanup facility for 'led_node' to simplify the code
> and make it more robust against new error paths where omitting a call to
> fwnode_handle_put() would leak memory.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@xxxxxxxxx>
> ---
> drivers/leds/leds-max5970.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)

This makes patch 1 completely pointless.

Please squash them and resubmit.

--
Lee Jones [李琼斯]