[PATCH 4/4] ACPI,PCI,IRQ: correct operator precedence
From: Sinan Kaya
Date: Fri Jun 24 2016 - 01:31:44 EST
The omitted parenthesis prevents the addition operation when
acpi_penalize_isa_irq function is called.
Signed-off-by: Sinan Kaya <okaya@xxxxxxxxxxxxxx>
---
drivers/acpi/pci_link.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
index c2f22c9..fcd1267 100644
--- a/drivers/acpi/pci_link.c
+++ b/drivers/acpi/pci_link.c
@@ -872,7 +872,7 @@ void acpi_penalize_isa_irq(int irq, int active)
{
if ((irq >= 0) && (irq < ARRAY_SIZE(acpi_isa_irq_penalty)))
acpi_isa_irq_penalty[irq] = acpi_irq_get_penalty(irq) +
- active ? PIRQ_PENALTY_ISA_USED : PIRQ_PENALTY_PCI_USING;
+ (active ? PIRQ_PENALTY_ISA_USED : PIRQ_PENALTY_PCI_USING);
}
bool acpi_isa_irq_available(int irq)
--
1.8.2.1
--------------A185EFCCD04DA26A1BD169FB
Content-Type: text/plain; charset=UTF-8;
name="0001-ACPI-PCI-IRQ-factor-in-PCI-possible.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0001-ACPI-PCI-IRQ-factor-in-PCI-possible.patch"