git: 6c1b6f7cf814 - main - acpi_pci_link: Factor out some duplicated code into a single copy
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Nov 2026 16:03:30 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=6c1b6f7cf81447315fc0c7a294ed1467c62832bd
commit 6c1b6f7cf81447315fc0c7a294ed1467c62832bd
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-11-14 16:02:38 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-11-14 16:02:38 +0000
acpi_pci_link: Factor out some duplicated code into a single copy
Tested by: cperciva
---
sys/dev/acpica/acpi_pci_link.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c
index 378e4631e97d..b10f9614c5bc 100644
--- a/sys/dev/acpica/acpi_pci_link.c
+++ b/sys/dev/acpica/acpi_pci_link.c
@@ -356,13 +356,12 @@ link_add_prs(ACPI_RESOURCE *res, void *context)
for (i = 0; i < link->l_num_irqs; i++) {
if (ext_irqs != NULL) {
link->l_irqs[i] = ext_irqs[i];
- if (ext_irqs[i] >= NUM_ISA_INTERRUPTS)
- link->l_isa_irq = false;
} else {
link->l_irqs[i] = irqs[i];
- if (irqs[i] >= NUM_ISA_INTERRUPTS)
- link->l_isa_irq = false;
}
+
+ if (link->l_irqs[i] >= NUM_ISA_INTERRUPTS)
+ link->l_isa_irq = false;
}
/*