WSL2-Linux-Kernel/drivers/misc/cxl
Andrew Donnellan 735840b44b 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>
2016-10-04 16:19:23 +11:00
..
Kconfig cxl: remove dead Kconfig options 2016-07-19 20:12:29 +10:00
Makefile cxl: Allow a default context to be associated with an external pci_dev 2016-07-14 20:26:52 +10:00
api.c cxl: Add support for interrupts on the Mellanox CX4 2016-07-14 20:27:08 +10:00
base.c cxl: Add support for interrupts on the Mellanox CX4 2016-07-14 20:27:08 +10:00
context.c cxl: Fix NULL dereference in cxl_context_init() on PowerVM guests 2016-08-09 16:52:02 +10:00
cxl.h cxl: Flush PSL cache before resetting the adapter 2016-10-04 16:16:42 +11:00
debugfs.c
fault.c
file.c
flash.c
guest.c cxl: fix potential NULL dereference in free_adapter() 2016-07-19 20:12:29 +10:00
hcalls.c
hcalls.h
irq.c cxl: Refine slice error debug messages 2016-07-08 22:22:03 +10:00
main.c cxl: Add support for interrupts on the Mellanox CX4 2016-07-14 20:27:08 +10:00
native.c cxl: Flush PSL cache before resetting the adapter 2016-10-04 16:16:42 +11:00
of.c cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put() 2016-10-04 16:19:23 +11:00
pci.c cxl: Flush PSL cache before resetting the adapter 2016-10-04 16:16:42 +11:00
phb.c cxl: Allow a default context to be associated with an external pci_dev 2016-07-14 20:26:52 +10:00
sysfs.c
trace.c
trace.h
vphb.c cxl: use pcibios_free_controller_deferred() when removing vPHBs 2016-08-22 11:09:33 +10:00