Skip to content

Commit

Permalink
PM / devfreq: exynos-ppmu: remove unneeded of_node_put()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and MyungJoo Ham committed Sep 6, 2016
1 parent c693593 commit 0b38ed3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/devfreq/event/exynos-ppmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0b38ed3

Please sign in to comment.