public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Trivial Patch Monkey <trivial@rustcorp.com.au>
To: Linus Torvalds <torvalds@osdl.org>,
	Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [TRIVIAL] Clean up
Date: Fri, 12 Mar 2004 17:13:31 +1100	[thread overview]
Message-ID: <1079072011.23776.461.camel@bach> (raw)

 From:  Josef 'Jeff' Sipek <jeffpc@optonline.net>(by way of Jeff Sipek <jeffpc@optonline.net>)

---
  I just noticed the nested ifdefs, and made it little more readable.
  
  Josef 'Jeff' Sipek
  
  

--- trivial-2.6.4/arch/i386/kernel/irq.c.orig	2004-03-12 16:56:07.000000000 +1100
+++ trivial-2.6.4/arch/i386/kernel/irq.c	2004-03-12 16:56:07.000000000 +1100
@@ -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,11 +184,9 @@
 		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;
 }
-- 
  What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
  Don't blame me: the Monkey is driving
  File: Josef 'Jeff' Sipek <jeffpc@optonline.net>(by way of Jeff Sipek <jeffpc@optonline.net>): [PATCH] Clean up


                 reply	other threads:[~2004-03-12  6:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1079072011.23776.461.camel@bach \
    --to=trivial@rustcorp.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox