Re: [PATCH] powerpc/pseries/iommu: Add of_node_put() before break

2021-11-02 Thread Michael Ellerman
On Thu, 14 Oct 2021 03:56:04 -0400, Wan Jiabing wrote: > Fix following coccicheck warning: > > ./arch/powerpc/platforms/pseries/iommu.c:924:1-28: WARNING: Function > for_each_node_with_property should have of_node_put() before break > > Early exits from for_each_node_with_property should

Re: [PATCH] powerpc/pseries/iommu: Add of_node_put() before break

2021-10-14 Thread Leonardo BrĂ¡s
Hello Wan, thank you for this patch. On Thu, 2021-10-14 at 03:56 -0400, Wan Jiabing wrote: > Fix following coccicheck warning: > > ./arch/powerpc/platforms/pseries/iommu.c:924:1-28: WARNING: Function > for_each_node_with_property should have of_node_put() before break > > Early exits from

[PATCH] powerpc/pseries/iommu: Add of_node_put() before break

2021-10-14 Thread Wan Jiabing
Fix following coccicheck warning: ./arch/powerpc/platforms/pseries/iommu.c:924:1-28: WARNING: Function for_each_node_with_property should have of_node_put() before break Early exits from for_each_node_with_property should decrement the node reference counter. Signed-off-by: Wan Jiabing ---