Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8725fcd9 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Thomas Gleixner
Browse files

x86/irq: Check for VECTOR_UNUSED directly



It's simpler and more intuitive to directly check for VECTOR_UNUSED than
checking whether the other error codes are not set.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/caeaca93-5ee1-cea1-8894-3aa0d5b19241@gmail.com
parent d6f83427
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ __visible unsigned int __irq_entry do_IRQ(struct pt_regs *regs)
	} else {
		ack_APIC_irq();

		if (desc != VECTOR_RETRIGGERED && desc != VECTOR_SHUTDOWN) {
		if (desc == VECTOR_UNUSED) {
			pr_emerg_ratelimited("%s: %d.%d No irq handler for vector\n",
					     __func__, smp_processor_id(),
					     vector);