diff options
author | glebius <glebius@FreeBSD.org> | 2015-05-25 14:12:50 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2015-05-25 14:12:50 +0000 |
commit | 66a0596ceed9c2af249e4d81677967af86707db4 (patch) | |
tree | 0a6844d22792deda5d0f47741a44f9d2df8ef332 /sys | |
parent | f67a4dcfd7b755e279a3eacad335e4b19f063aab (diff) | |
download | FreeBSD-src-66a0596ceed9c2af249e4d81677967af86707db4.zip FreeBSD-src-66a0596ceed9c2af249e4d81677967af86707db4.tar.gz |
Don't compare array to NULL.
Found by: clang
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ipw/if_ipw.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/ipw/if_ipw.c b/sys/dev/ipw/if_ipw.c index 3f20745..0c97e9b 100644 --- a/sys/dev/ipw/if_ipw.c +++ b/sys/dev/ipw/if_ipw.c @@ -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); } |