]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitbe565ec71d1d59438bed0c7ed0a252a327e0b0ef
tree57d7b5ff7092034a990d78bcf7a5061db812b9af
parent71da1aec215290e249d09c44c768df859f3a3bba
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