Skip to contentSkip to conversation

X86: PCI: ACPI: Remove initialization of static variables to false

PATCH Applied Longji Guo 2 participants 2 messages Dec 3, 2021 – Jan 11, 2022

Subsystems (3)
lore
Share & tools
lore

Longji Guo

author
#0 lore raw

PATCH 1/1 X86: PCI: ACPI: Remove initialization of static variables to false

Remove the initialization of pci_ignore_seg to false which is pointless.

---
 arch/x86/pci/acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/pci/acpi.c +1 -1
index 948656069cdd..052f1d78a562 100644
@@ -20,7 +20,7 @@ struct pci_root_info {
 };
 
 static bool pci_use_crs = true;
-static bool pci_ignore_seg = false;
+static bool pci_ignore_seg;
 
 static int __init set_use_crs(const struct dmi_system_id *id)
 {
Signature · 1 line
2.20.1
#1 lore raw
Quoted 3 lines · Longji Guo

Remove the initialization of pci_ignore_seg to false which is pointless.

Applied to pci/enumeration for v5.17, thanks!

Quoted 22 lines
---
 arch/x86/pci/acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/pci/acpi.c +1 -1
index 948656069cdd..052f1d78a562 100644
@@ -20,7 +20,7 @@ struct pci_root_info {
 };
 
 static bool pci_use_crs = true;
-static bool pci_ignore_seg = false;
+static bool pci_ignore_seg;
 
 static int __init set_use_crs(const struct dmi_system_id *id)
 {
Signature · 1 line
2.20.1