summaryrefslogtreecommitdiffstats
path: root/arch/x86/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2014-01-24 11:57:18 -0700
committerBjorn Helgaas <bhelgaas@google.com>2014-02-03 10:38:52 -0700
commit3323ab8f7a2f8ffed9393388863bf17329077524 (patch)
treef7835d1f333132eea34360811a51b5f242785736 /arch/x86/pci
parent25453e9e521382883b6588ef1748ed61efc77001 (diff)
downloadlinux-3323ab8f7a2f8ffed9393388863bf17329077524.tar.gz
linux-3323ab8f7a2f8ffed9393388863bf17329077524.tar.bz2
linux-3323ab8f7a2f8ffed9393388863bf17329077524.zip
x86/PCI: Remove unnecessary list_empty(&pci_root_infos) check
list_for_each_entry() handles empty lists, so there's no need to check whether the list is empty first. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r--arch/x86/pci/bus_numa.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/pci/bus_numa.c b/arch/x86/pci/bus_numa.c
index 2e36a4469549..f3a2cfc14125 100644
--- a/arch/x86/pci/bus_numa.c
+++ b/arch/x86/pci/bus_numa.c
@@ -10,9 +10,6 @@ static struct pci_root_info *x86_find_pci_root_info(int bus)
{
struct pci_root_info *info;
- if (list_empty(&pci_root_infos))
- return NULL;
-
list_for_each_entry(info, &pci_root_infos, list)
if (info->busn.start == bus)
return info;