* [PATCH] Clean up
@ 2004-02-09 11:29 Josef 'Jeff' Sipek
0 siblings, 0 replies; only message in thread
From: Josef 'Jeff' Sipek @ 2004-02-09 11:29 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Andrew Morton
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-09 11:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-09 11:29 [PATCH] Clean up Josef 'Jeff' Sipek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®