diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h index b1845e24..81e3dd4c 100644 --- a/arch/x86/include/asm/irqflags.h +++ b/arch/x86/include/asm/irqflags.h @@ -54,8 +54,7 @@ inline static uint32_t irq_nested_disable(void) { uint32_t flags; asm volatile("pushf; cli; popl %0": "=r"(flags) : : "memory"); if (flags & (1 << 9)) - return 1; - + return 1; return 0; } @@ -72,9 +71,8 @@ inline static void irq_enable(void) { * @param flags Flags to set. Could be the old ones you got from irq_nested_disable. */ inline static void irq_nested_enable(uint32_t flags) { - if (flags) { + if (flags) irq_enable(); - } } #ifdef __cplusplus