PM / devfreq: exynos-ppmu: remove unneeded of_node_put()
for_each_child_of_node() performs an of_node_put() on each iteration, so putting an of_node_put() before a continue results in a double put. Generated by: scripts/coccinelle/iterators/device_node_continue.cocci Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
This commit is contained in:
parent
c6935931c1
commit
0b38ed36a1
|
@ -406,8 +406,6 @@ static int of_get_devfreq_events(struct device_node *np,
|
|||
of_property_read_string(node, "event-name", &desc[j].name);
|
||||
|
||||
j++;
|
||||
|
||||
of_node_put(node);
|
||||
}
|
||||
info->desc = desc;
|
||||
|
||||
|
|
Loading…
Reference in a new issue