summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ipw/if_ipw.c7
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);
}
OpenPOWER on IntegriCloud