bsps/mpc83xx: Fix warnings

This commit is contained in:
Sebastian Huber
2014-12-19 12:07:23 +01:00
parent b3ed66a17f
commit fca5892454

View File

@@ -635,6 +635,7 @@ static void tsec_receive_packets
* throw away mbuf * throw away mbuf
*/ */
MFREE(m,n); MFREE(m,n);
(void) n;
} }
/* /*
* mark buffer as non-allocated (for refill) * mark buffer as non-allocated (for refill)
@@ -684,6 +685,7 @@ static void tsec_refill_rxbds
MCLGET(m,M_DONTWAIT); MCLGET(m,M_DONTWAIT);
if ((m->m_flags & M_EXT) == 0) { if ((m->m_flags & M_EXT) == 0) {
MFREE(m,n); MFREE(m,n);
(void) n;
m = NULL; m = NULL;
} }
} }
@@ -735,7 +737,6 @@ static void tsec_rxDaemon
struct tsec_struct *sc = struct tsec_struct *sc =
(struct tsec_struct *)arg; (struct tsec_struct *)arg;
bool finished = false; bool finished = false;
rtems_event_set events;
#if !defined(CLREVENT_IN_IRQ) #if !defined(CLREVENT_IN_IRQ)
uint32_t irq_events; uint32_t irq_events;
#endif #endif
@@ -751,7 +752,7 @@ static void tsec_rxDaemon
/* /*
* wait for events to come in * wait for events to come in
*/ */
events = tsec_rx_wait_for_events(sc,INTERRUPT_EVENT); tsec_rx_wait_for_events(sc,INTERRUPT_EVENT);
#if !defined(CLREVENT_IN_IRQ) #if !defined(CLREVENT_IN_IRQ)
/* /*
* clear any pending RX events * clear any pending RX events
@@ -924,6 +925,7 @@ static void tsec_tx_retire
sc->Tx_mBuf_Ptr[bd_idx] = NULL; sc->Tx_mBuf_Ptr[bd_idx] = NULL;
MFREE(m,n); MFREE(m,n);
(void) n;
RetBD->buffer = NULL; RetBD->buffer = NULL;
/* /*
* Advance CurrBD to next BD * Advance CurrBD to next BD
@@ -1071,7 +1073,6 @@ static void tsec_txDaemon
struct ifnet *ifp = &sc->arpcom.ac_if; struct ifnet *ifp = &sc->arpcom.ac_if;
struct mbuf *m; struct mbuf *m;
bool finished = false; bool finished = false;
rtems_event_set events;
#if !defined(CLREVENT_IN_IRQ) #if !defined(CLREVENT_IN_IRQ)
uint32_t irq_events; uint32_t irq_events;
#endif #endif
@@ -1085,7 +1086,7 @@ static void tsec_txDaemon
/* /*
* wait for events to come in * wait for events to come in
*/ */
events = tsec_tx_wait_for_events(sc, tsec_tx_wait_for_events(sc,
START_TRANSMIT_EVENT START_TRANSMIT_EVENT
| INTERRUPT_EVENT); | INTERRUPT_EVENT);
#if !defined(CLREVENT_IN_IRQ) #if !defined(CLREVENT_IN_IRQ)