Re: [PATCH 1/3] gpio: dwapb: switch to device_for_each_child_node_scoped()

From: Andy Shevchenko
Date: Mon Sep 30 2024 - 07:31:13 EST


On Sat, Sep 28, 2024 at 09:47:35PM +0200, Javier Carrasco wrote:
> Switch to device_for_each_child_node_scoped() to simplify the code by
> removing the need for a call to fwnode_handle_put() in the error path.
>
> This also prevents possible memory leaks if new error paths are added
> without the required call to fwnode_handle_put().

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko