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 <[email protected]>
Signed-off-by: MyungJoo Ham <[email protected]>
This commit is contained in:
Wei Yongjun 2016-07-08 13:44:04 +00:00 • committed by MyungJoo Ham
commit 0b38ed36a1

View file

@ -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;