eepro100: Replace variable name to fix a compiler warning

When compiling with -Wshadow, gcc gives a warning
which is fixed by renaming stat -> status.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Stefan Weil 2010-03-02 22:37:52 +01:00 committed by Michael S. Tsirkin
parent b1e87018f2
commit e715c8e84c
1 changed files with 6 additions and 6 deletions

View File

@ -392,14 +392,14 @@ static void eepro100_acknowledge(EEPRO100State * s)
} }
} }
static void eepro100_interrupt(EEPRO100State * s, uint8_t stat) static void eepro100_interrupt(EEPRO100State * s, uint8_t status)
{ {
uint8_t mask = ~s->mem[SCBIntmask]; uint8_t mask = ~s->mem[SCBIntmask];
s->mem[SCBAck] |= stat; s->mem[SCBAck] |= status;
stat = s->scb_stat = s->mem[SCBAck]; status = s->scb_stat = s->mem[SCBAck];
stat &= (mask | 0x0f); status &= (mask | 0x0f);
//~ stat &= (~s->mem[SCBIntmask] | 0x0xf); //~ status &= (~s->mem[SCBIntmask] | 0x0xf);
if (stat && (mask & 0x01)) { if (status && (mask & 0x01)) {
/* SCB mask and SCB Bit M do not disable interrupt. */ /* SCB mask and SCB Bit M do not disable interrupt. */
enable_interrupt(s); enable_interrupt(s);
} else if (s->int_stat) { } else if (s->int_stat) {