diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2016-07-29 05:55:34 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-10-04 07:19:23 +0200 |
commit | 735840b44bcc998e2574faf63d1aaaf9b41f2827 (patch) | |
tree | eb9215202f80d8ac08e08926cbc4c7a204d124d6 /scripts/extract-ikconfig | |
parent | cxl: Flush PSL cache before resetting the adapter (diff) | |
download | linux-735840b44bcc998e2574faf63d1aaaf9b41f2827.tar.xz linux-735840b44bcc998e2574faf63d1aaaf9b41f2827.zip |
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 <elfring@users.sourceforge.net>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'scripts/extract-ikconfig')
0 files changed, 0 insertions, 0 deletions