]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: add missing of_node_put before return
authorWang Qing <wangqing@vivo.com>
Mon, 13 Dec 2021 09:44:36 +0000 (01:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Dec 2021 14:54:54 +0000 (14:54 +0000)
commit18806b5073916c44ab728cb9f88c42ceedb179b0
tree57d7b5ff7092034a990d78bcf7a5061db812b9af
parente0c496efb170028b3390191dead837f3eaad6d90
net: ethernet: ti: add missing of_node_put before return

Fix following coccicheck warning:
WARNING: Function "for_each_child_of_node"
should have of_node_put() before return.

Early exits from for_each_child_of_node should decrement the
node reference counter.

Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpsw-nuss.c