Skip to content
Snippets Groups Projects
Commit d1a7b9e4 authored by Wan Jiabing's avatar Wan Jiabing Committed by David S. Miller
Browse files

net: mscc: ocelot: Add of_node_put() before goto


Fix following coccicheck warning:
./drivers/net/ethernet/mscc/ocelot_vsc7514.c:946: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 d9fd7e9f
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment