Skip to content

Commit

Permalink
[MIPS] Yosemite: Fix warning.
Browse files Browse the repository at this point in the history
arch/mips/pmc-sierra/yosemite/smp.c: In function 'titan_mailbox_irq':
arch/mips/pmc-sierra/yosemite/smp.c:112: warning: 'status' may be used uninitialized in this function

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Jul 31, 2007
1 parent e0a725a commit e9c227f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions arch/mips/pmc-sierra/yosemite/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,23 @@ void titan_mailbox_irq(void)
int cpu = smp_processor_id();
unsigned long status;

if (cpu == 0) {
switch (cpu) {
case 0:
status = OCD_READ(RM9000x2_OCD_INTP0STATUS3);
OCD_WRITE(RM9000x2_OCD_INTP0CLEAR3, status);
}

if (cpu == 1) {
if (status & 0x2)
smp_call_function_interrupt();
break;

case 1:
status = OCD_READ(RM9000x2_OCD_INTP1STATUS3);
OCD_WRITE(RM9000x2_OCD_INTP1CLEAR3, status);
}

if (status & 0x2)
smp_call_function_interrupt();
if (status & 0x2)
smp_call_function_interrupt();
break;
}
}

/*
Expand Down

0 comments on commit e9c227f

Please sign in to comment.