Don't compare array to NULL.
Found by: clang
This commit is contained in:
parent
c8550c0278
commit
19de5f4e3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283528
@ -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 New Issue
Block a user