summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/irq_txx9.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2007-08-03 16:33:38 +0200
committerRalf Baechle <ralf@linux-mips.org>2007-08-27 03:16:54 +0200
commit5d3fdeacee5d071a5c3d674231bf00cfa5d35a7a (patch)
tree6c010f29a9ee06393c8e6cb603d5ca0bd09cea4b /arch/mips/kernel/irq_txx9.c
parent[MIPS] Do not discard extra debugging sections. (diff)
downloadlinux-5d3fdeacee5d071a5c3d674231bf00cfa5d35a7a.tar.xz
linux-5d3fdeacee5d071a5c3d674231bf00cfa5d35a7a.zip
[MIPS] Remove dead code from irq_txx9.c
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/irq_txx9.c')
-rw-r--r--arch/mips/kernel/irq_txx9.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/mips/kernel/irq_txx9.c b/arch/mips/kernel/irq_txx9.c
index 172e14b461df..a4d1462c27f7 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)