Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6bc3262 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Ingo Molnar
Browse files

sparseirq, powerpc/cell: fix unused variable warning in interrupt.c



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:

   dee4102a: sparseirq: use kstat_irqs_cpu instead

Remove the variable.

Signed-off-by: default avatarStephen 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: default avatarIngo Molnar <mingo@elte.hu>
parent edb35028
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -237,8 +237,6 @@ extern int noirqdebug;


static void handle_iic_irq(unsigned int irq, struct irq_desc *desc)
static void handle_iic_irq(unsigned int irq, struct irq_desc *desc)
{
{
	const unsigned int cpu = smp_processor_id();

	spin_lock(&desc->lock);
	spin_lock(&desc->lock);


	desc->status &= ~(IRQ_REPLAY | IRQ_WAITING);
	desc->status &= ~(IRQ_REPLAY | IRQ_WAITING);