2008-08-30 Joel Sherrill <joel.sherrill@OARcorp.com>

* libchip/network/sonic.c: Do not declare a variable just to hold an
	ignored return value.
This commit is contained in:
Joel Sherrill
2008-08-30 20:29:57 +00:00
parent f634ca2997
commit a818530b48
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2008-08-30 Joel Sherrill <joel.sherrill@OARcorp.com>
* libchip/network/sonic.c: Do not declare a variable just to hold an
ignored return value.
2008-08-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libchip/i2c/spi-sd-card.c: Fixed integer conversion warnings.

View File

@@ -1103,7 +1103,6 @@ SONIC_STATIC void sonic_initialize_hardware(struct sonic_softc *sc)
void *rp = sc->sonic;
int i;
unsigned char *hwaddr;
rtems_isr_entry old_handler;
TransmitDescriptorPointer_t tdp;
ReceiveDescriptorPointer_t ordp, rdp;
ReceiveResourcePointer_t rwp;
@@ -1406,7 +1405,9 @@ SONIC_STATIC void sonic_initialize_hardware(struct sonic_softc *sc)
/* XXX
(*sc->write_register)( rp, SONIC_REG_IMR, 0 );
*/
old_handler = set_vector(sonic_interrupt_handler, sc->vector, 1);
/* Ignore returned old handler */
(void) set_vector(sonic_interrupt_handler, sc->vector, 1);
/*
* Remainder of hardware initialization is