linux-mips
[Top] [All Lists]

[PATCH] Remove dead code from irq_txx9.c

To: linux-mips@linux-mips.org
Subject: [PATCH] Remove dead code from irq_txx9.c
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Fri, 03 Aug 2007 23:33:38 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/kernel/irq_txx9.c b/arch/mips/kernel/irq_txx9.c
index 172e14b..a4d1462 100644
--- a/arch/mips/kernel/irq_txx9.c
+++ b/arch/mips/kernel/irq_txx9.c
@@ -105,13 +105,9 @@ static void txx9_irq_mask_ack(unsigned int irq)
        unsigned int irq_nr = irq - TXX9_IRQ_BASE;
 
        txx9_irq_mask(irq);
-       if (TXx9_IRCR_EDGE(txx9irq[irq_nr].mode)) {
-               /* clear edge detection */
-               u32 cr = __raw_readl(&txx9_ircptr->cr[irq_nr / 8]);
-               cr = (cr >> ((irq_nr & (8 - 1)) * 2)) & 3;
-               __raw_writel(TXx9_IRSCR_EIClrE | irq_nr,
-                            &txx9_ircptr->scr);
-       }
+       /* clear edge detection */
+       if (unlikely(TXx9_IRCR_EDGE(txx9irq[irq_nr].mode)))
+               __raw_writel(TXx9_IRSCR_EIClrE | irq_nr, &txx9_ircptr->scr);
 }
 
 static int txx9_irq_set_type(unsigned int irq, unsigned int flow_type)

<Prev in Thread] Current Thread [Next in Thread>