aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAndrew Donnellan <[email protected]>2016-07-29 13:55:34 +1000
committerMichael Ellerman <[email protected]>2016-10-04 16:19:23 +1100
commit735840b44bcc998e2574faf63d1aaaf9b41f2827 (patch)
treeeb9215202f80d8ac08e08926cbc4c7a204d124d6 /tools/perf/scripts/python
parentaaa2245ed836824f21f8e42e0ab63b1637d1cb20 (diff)
cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put()
Rewrite the cxl_guest_init_afu() loop in cxl_of_probe() to use for_each_child_of_node() rather than a hand-coded for loop. Remove the useless of_node_put(afu_np) call after the loop, where it's guaranteed that afu_np == NULL. Reported-by: SF Markus Elfring <[email protected]> Reported-by: Julia Lawall <[email protected]> Signed-off-by: Andrew Donnellan <[email protected]> Reviewed-by: Frederic Barrat <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions