Revert "net: hisilicon: hns_dsaf_mac: fix OF node leak in hns_mac_get_info()"
This reverts commit 93ae0df7e7
.
This commit is contained in:
parent
c8ed470e75
commit
fae39e1046
1 changed files with 0 additions and 1 deletions
|
@ -933,7 +933,6 @@ static int hns_mac_get_info(struct hns_mac_cb *mac_cb)
|
|||
mac_cb->cpld_ctrl = NULL;
|
||||
} else {
|
||||
syscon = syscon_node_to_regmap(cpld_args.np);
|
||||
of_node_put(cpld_args.np);
|
||||
if (IS_ERR_OR_NULL(syscon)) {
|
||||
dev_dbg(mac_cb->dev, "no cpld-syscon found!\n");
|
||||
mac_cb->cpld_ctrl = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue