Skip to content

Commit 8725fcd

Browse files
hkallweitKAGA-KOKO
authored andcommitted
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: Heiner Kallweit <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent d6f8342 commit 8725fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ __visible unsigned int __irq_entry do_IRQ(struct pt_regs *regs)
251251
} else {
252252
ack_APIC_irq();
253253

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

0 commit comments

Comments
 (0)