Skip to content

Commit 7d7fb91

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI / x86: boot: Swap variables in condition in acpi_register_gsi_ioapic()
For better readability compare input to something considered settled down. Additionally move it to one line (while it's slightly longer 80 characters it makes readability better). No functional change intended. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 464e1d5 commit 7d7fb91

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/kernel/acpi/boot.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,7 @@ static int acpi_register_gsi_ioapic(struct device *dev, u32 gsi,
676676
mutex_lock(&acpi_ioapic_lock);
677677
irq = mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC, &info);
678678
/* Don't set up the ACPI SCI because it's already set up */
679-
if (irq >= 0 && enable_update_mptable &&
680-
acpi_gbl_FADT.sci_interrupt != gsi)
679+
if (irq >= 0 && enable_update_mptable && gsi != acpi_gbl_FADT.sci_interrupt)
681680
mp_config_acpi_gsi(dev, gsi, trigger, polarity);
682681
mutex_unlock(&acpi_ioapic_lock);
683682
#endif

0 commit comments

Comments
 (0)