]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sparseirq, powerpc/cell: fix unused variable warning in interrupt.c
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Mar 2009 07:52:56 +0000 (18:52 +1100)
committerIngo Molnar <mingo@elte.hu>
Mon, 16 Mar 2009 08:21:57 +0000 (09:21 +0100)
This new compiler warning:

   arch/powerpc/platforms/cell/interrupt.c: In function 'handle_iic_irq':
   arch/powerpc/platforms/cell/interrupt.c:240: warning: unused variable 'cpu'

Triggers because the local variable 'cpu' became unused due to commit:

   dee4102: sparseirq: use kstat_irqs_cpu instead

Remove the variable.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: ppc-dev <linuxppc-dev@ozlabs.org>
LKML-Reference: <20090316185256.4a160374.sfr@canb.auug.org.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/powerpc/platforms/cell/interrupt.c

index 1f0d774ad92839cd01bcc5e5a956dbfb60d8c6c7..882e47080e74f493523399a0b1e7703c09b7b999 100644 (file)
@@ -237,8 +237,6 @@ extern int noirqdebug;
 
 static void handle_iic_irq(unsigned int irq, struct irq_desc *desc)
 {
-       const unsigned int cpu = smp_processor_id();
-
        spin_lock(&desc->lock);
 
        desc->status &= ~(IRQ_REPLAY | IRQ_WAITING);