projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25453e9
)
x86/PCI: Remove unnecessary list_empty(&pci_root_infos) check
author
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 24 Jan 2014 18:57:18 +0000
(11:57 -0700)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Mon, 3 Feb 2014 17:38:52 +0000
(10:38 -0700)
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>
arch/x86/pci/bus_numa.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/pci/bus_numa.c
b/arch/x86/pci/bus_numa.c
index 2e36a4469549cd7ddc0ff6080c444cc70e47ee9b..f3a2cfc14125bbb387d7eae474304a59cf8b2ef1 100644
(file)
--- 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;