]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: Use list_for_each_entry() for bus->devices traversal
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 17 Aug 2012 21:53:27 +0000 (15:53 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 22 Aug 2012 17:31:37 +0000 (11:31 -0600)
commit66455f5472383df3632140e04f0852215e5c9ce8
tree647bff405ef4cbdd01b1dba594e632b715029e54
parent125e14bb35e65b1ddfb7252fa8f6e3c50dbb6db2
PCI: Use list_for_each_entry() for bus->devices traversal

Replace list_for_each() + pci_dev_b() with the simpler
list_for_each_entry().

Tested-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/pci/remove.c
drivers/pci/search.c