Remove duplicated check.
Found by: PVS-Studio
This commit is contained in:
parent
a28774fe4e
commit
a0e698febe
@ -1938,18 +1938,15 @@ rl_stop(struct rl_softc *sc)
|
||||
*/
|
||||
for (i = 0; i < RL_TX_LIST_CNT; i++) {
|
||||
if (sc->rl_cdata.rl_tx_chain[i] != NULL) {
|
||||
if (sc->rl_cdata.rl_tx_chain[i] != NULL) {
|
||||
bus_dmamap_sync(sc->rl_cdata.rl_tx_tag,
|
||||
sc->rl_cdata.rl_tx_dmamap[i],
|
||||
BUS_DMASYNC_POSTWRITE);
|
||||
bus_dmamap_unload(sc->rl_cdata.rl_tx_tag,
|
||||
sc->rl_cdata.rl_tx_dmamap[i]);
|
||||
m_freem(sc->rl_cdata.rl_tx_chain[i]);
|
||||
sc->rl_cdata.rl_tx_chain[i] = NULL;
|
||||
}
|
||||
CSR_WRITE_4(sc, RL_TXADDR0 + (i * sizeof(uint32_t)),
|
||||
0x0000000);
|
||||
bus_dmamap_sync(sc->rl_cdata.rl_tx_tag,
|
||||
sc->rl_cdata.rl_tx_dmamap[i],
|
||||
BUS_DMASYNC_POSTWRITE);
|
||||
bus_dmamap_unload(sc->rl_cdata.rl_tx_tag,
|
||||
sc->rl_cdata.rl_tx_dmamap[i]);
|
||||
m_freem(sc->rl_cdata.rl_tx_chain[i]);
|
||||
sc->rl_cdata.rl_tx_chain[i] = NULL;
|
||||
}
|
||||
CSR_WRITE_4(sc, RL_TXADDR0 + (i * sizeof(uint32_t)), 0x0000000);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user