phy: rockchip-inno-usb2: fix for_each_child.cocci warnings
authorkernel test robot <lkp@intel.com>
Wed, 23 Jun 2021 14:23:30 +0000 (16:23 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 6 Aug 2021 11:22:29 +0000 (16:52 +0530)
commit1716e49eb8b4478e8952ce9206f1974c3e842e1f
treeee5b45df2c3c12418085fe7ff104f584f5554bb6
parentc1302e8ce517ed9c417aa4eb19776df4efbbebf4
phy: rockchip-inno-usb2: fix for_each_child.cocci warnings

For_each_available_child_of_node should have of_node_put()
before break around line 1184.  The other jumps out of the
loop do contain the put.

Generated by: scripts/coccinelle/iterators/for_each_child.cocci

CC: Sumera Priyadarsini <sylphrenadin@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2106231617540.99238@hadrien
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c