]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: fix for_each_child.cocci warnings
authorkernel test robot <lkp@intel.com>
Sun, 11 Jul 2021 16:12:56 +0000 (18:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jul 2021 17:01:55 +0000 (10:01 -0700)
commit58499981a08e00cca9c01238b682f79851fbacb5
tree7e2364910f30fe64dbfbfb7d882b3c1a13d57bf8
parent8c42da3ce37c62bee61599e0b87abf7b2e60a9db
dsa: fix for_each_child.cocci warnings

For_each_available_child_of_node should have of_node_put() before
return around line 423.

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

CC: Alexander Lobakin <alobakin@pm.me>
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c