ACPI,PCI,IRQ: correct operator precedence
authorSinan Kaya <okaya@codeaurora.org>
Wed, 29 Jun 2016 08:27:38 +0000 (04:27 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 30 Jun 2016 13:35:27 +0000 (15:35 +0200)
The omitted parenthesis prevents the addition operation when
acpi_penalize_isa_irq function is called.

Fixes: 103544d86976 (ACPI,PCI,IRQ: reduce resource requirements)
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_link.c

index 8fc7323ed3e847197cfdf1e6fdee728cdfdd8e7b..4ed4061813e68fa2bccc266266d433ce6c0e386c 100644 (file)
@@ -839,7 +839,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)