[PATCH] Clean up

From: Josef 'Jeff' Sipek
Date: Mon Feb 09 2004 - 06:33:52 EST


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

Josef 'Jeff' Sipek


diff -Nru a/arch/i386/kernel/irq.c b/arch/i386/kernel/irq.c
--- a/arch/i386/kernel/irq.c Mon Feb 9 03:22:21 2004
+++ b/arch/i386/kernel/irq.c Mon Feb 9 03:22:21 2004
@@ -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;


--
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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/