net: dsa: Removed unneeded of_node_put in felix_parse_ports_node
authorLu Hongfei <luhongfei@vivo.com>
Mon, 10 Jul 2023 03:18:59 +0000 (11:18 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Jul 2023 08:53:14 +0000 (10:53 +0200)
commit04499f28b40bfc24f20b0e2331008bb90a54a6cf
treee57d88b483be543da1ded8ab441c2b1b68f76a8e
parentc0dbbdf56f13c960aa6bedf61302f57411ae4865
net: dsa: Removed unneeded of_node_put in felix_parse_ports_node

Remove unnecessary of_node_put from the continue path to prevent
child node from being released twice, which could avoid resource
leak or other unexpected issues.

Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Fixes: de879a016a94 ("net: dsa: felix: add functionality when not all ports are supported")
Link: https://lore.kernel.org/r/20230710031859.36784-1-luhongfei@vivo.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/ocelot/felix.c