Skip to contentSkip to conversation

Clean up

PATCH New Josef 'Jeff' Sipek 1 participant 1 message Feb 9, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Clean up

I just noticed the nested ifdefs, and made it little more readable.

Josef 'Jeff' Sipek

arch/i386/kernel/irq.c Mon Feb 9 03:22:21 2004 +2 -6
diff -Nru a/arch/i386/kernel/irq.c b/arch/i386/kernel/irq.c
@@ -126,11 +126,9 @@
 };
 
 atomic_t irq_err_count;
-#ifdef CONFIG_X86_IO_APIC
-#ifdef APIC_MISMATCH_DEBUG
+#if defined(CONFIG_X86_IO_APIC) && defined(APIC_MISMATCH_DEBUG)
 atomic_t irq_mis_count;
 #endif
-#endif
 
 /*
  * Generic, controller-independent functions:
@@ -186,10 +184,8 @@
                seq_putc(p, '\n');
 #endif
                seq_printf(p, "ERR: %10u\n", atomic_read(&irq_err_count));
-#ifdef CONFIG_X86_IO_APIC
-#ifdef APIC_MISMATCH_DEBUG
+#if defined(CONFIG_X86_IO_APIC) && defined(APIC_MISMATCH_DEBUG)
                seq_printf(p, "MIS: %10u\n", atomic_read(&irq_mis_count));
-#endif
 #endif
        }
        return 0;
Signature · 3 lines
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.