Skip to content

Commit 562fed9

Browse files
windhlmarckleinebudde
authored andcommitted
can: grcan: grcan_probe(): remove extra of_node_get()
In grcan_probe(), of_find_node_by_path() has already increased the refcount. There is no need to call of_node_get() again, so remove it. Link: https://lore.kernel.org/all/[email protected] Fixes: 1e93ed2 ("can: grcan: grcan_probe(): fix broken system id check for errata workaround needs") Cc: [email protected] # v5.18 Cc: Andreas Larsson <[email protected]> Signed-off-by: Liang He <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 2bda24e commit 562fed9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/can/grcan.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,6 @@ static int grcan_probe(struct platform_device *ofdev)
16461646
*/
16471647
sysid_parent = of_find_node_by_path("/ambapp0");
16481648
if (sysid_parent) {
1649-
of_node_get(sysid_parent);
16501649
err = of_property_read_u32(sysid_parent, "systemid", &sysid);
16511650
if (!err && ((sysid & GRLIB_VERSION_MASK) >=
16521651
GRCAN_TXBUG_SAFE_GRLIB_VERSION))

0 commit comments

Comments
 (0)