History

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.

Liang He committed 4 years ago

Commit 562fed91 parent 2bda24e1 file · +0 −1Browse files

Unified · Split

drivers/net/can/grcan.c+0−1
@@ -1646,7 +1646,6 @@ static int grcan_probe(struct platform_device *ofdev) · 1645 unmodified lines
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))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t