Skip to content
Commit d9fd7e9f authored by Wan Jiabing's avatar Wan Jiabing Committed by David S. Miller
Browse files

net: sparx5: Add of_node_put() before goto



Fix following coccicheck warning:
./drivers/net/ethernet/microchip/sparx5/s4parx5_main.c:723:1-33: WARNING: Function
for_each_available_child_of_node should have of_node_put() before goto

Early exits from for_each_available_child_of_node should decrement the
node reference counter.

Signed-off-by: default avatarWan Jiabing <wanjiabing@vivo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2dc4e9e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment