mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't compare array to NULL.
Found by: clang
This commit is contained in:
parent
c8550c0278
commit
19de5f4e3e
1 changed files with 2 additions and 5 deletions
|
|
@ -752,11 +752,8 @@ ipw_release(struct ipw_softc *sc)
|
|||
}
|
||||
|
||||
if (sc->tbd_dmat != NULL) {
|
||||
if (sc->stbd_list != NULL) {
|
||||
bus_dmamap_unload(sc->tbd_dmat, sc->tbd_map);
|
||||
bus_dmamem_free(sc->tbd_dmat, sc->tbd_list,
|
||||
sc->tbd_map);
|
||||
}
|
||||
bus_dmamap_unload(sc->tbd_dmat, sc->tbd_map);
|
||||
bus_dmamem_free(sc->tbd_dmat, sc->tbd_list, sc->tbd_map);
|
||||
bus_dma_tag_destroy(sc->tbd_dmat);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue