diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c index 4efbb32d159..7ccd1c3c73e 100644 --- a/sys/dev/aha/aha.c +++ b/sys/dev/aha/aha.c @@ -209,7 +209,6 @@ aha_free(struct aha_softc *aha) case 6: bus_dmamem_free(aha->ccb_dmat, aha->aha_ccb_array, aha->ccb_dmamap); - bus_dmamap_destroy(aha->ccb_dmat, aha->ccb_dmamap); case 5: bus_dma_tag_destroy(aha->ccb_dmat); case 4: @@ -217,7 +216,6 @@ aha_free(struct aha_softc *aha) case 3: bus_dmamem_free(aha->mailbox_dmat, aha->in_boxes, aha->mailbox_dmamap); - bus_dmamap_destroy(aha->mailbox_dmat, aha->mailbox_dmamap); case 2: bus_dma_tag_destroy(aha->buffer_dmat); case 1: diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c index fd07c443820..588e1aa1f48 100644 --- a/sys/dev/ahb/ahb.c +++ b/sys/dev/ahb/ahb.c @@ -421,7 +421,6 @@ ahbfree(struct ahb_softc *ahb) case 3: bus_dmamem_free(ahb->ecb_dmat, ahb->ecb_array, ahb->ecb_dmamap); - bus_dmamap_destroy(ahb->ecb_dmat, ahb->ecb_dmamap); case 2: bus_dma_tag_destroy(ahb->ecb_dmat); case 1: diff --git a/sys/dev/aic7xxx/aic79xx.c b/sys/dev/aic7xxx/aic79xx.c index fac80cabeb3..2c8b6d45524 100644 --- a/sys/dev/aic7xxx/aic79xx.c +++ b/sys/dev/aic7xxx/aic79xx.c @@ -5413,8 +5413,6 @@ ahd_free(struct ahd_softc *ahd) case 3: aic_dmamem_free(ahd, ahd->shared_data_dmat, ahd->qoutfifo, ahd->shared_data_map.dmamap); - aic_dmamap_destroy(ahd, ahd->shared_data_dmat, - ahd->shared_data_map.dmamap); /* FALLTHROUGH */ case 2: aic_dma_tag_destroy(ahd, ahd->shared_data_dmat); diff --git a/sys/dev/aic7xxx/aic7xxx.c b/sys/dev/aic7xxx/aic7xxx.c index e1428e98866..f1723fbab53 100644 --- a/sys/dev/aic7xxx/aic7xxx.c +++ b/sys/dev/aic7xxx/aic7xxx.c @@ -4061,8 +4061,6 @@ ahc_free(struct ahc_softc *ahc) case 3: aic_dmamem_free(ahc, ahc->shared_data_dmat, ahc->qoutfifo, ahc->shared_data_dmamap); - aic_dmamap_destroy(ahc, ahc->shared_data_dmat, - ahc->shared_data_dmamap); /* FALLTHROUGH */ case 2: aic_dma_tag_destroy(ahc, ahc->shared_data_dmat); @@ -4501,8 +4499,6 @@ ahc_fini_scbdata(struct ahc_softc *ahc) case 5: aic_dmamem_free(ahc, scb_data->sense_dmat, scb_data->sense, scb_data->sense_dmamap); - aic_dmamap_destroy(ahc, scb_data->sense_dmat, - scb_data->sense_dmamap); case 4: aic_dma_tag_destroy(ahc, scb_data->sense_dmat); case 3: @@ -4511,8 +4507,6 @@ ahc_fini_scbdata(struct ahc_softc *ahc) case 2: aic_dmamem_free(ahc, scb_data->hscb_dmat, scb_data->hscbs, scb_data->hscb_dmamap); - aic_dmamap_destroy(ahc, scb_data->hscb_dmat, - scb_data->hscb_dmamap); case 1: aic_dma_tag_destroy(ahc, scb_data->hscb_dmat); break; diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 5e8886bec43..71448ab681a 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -4558,7 +4558,6 @@ tulip_busdma_cleanup(tulip_softc_t * const sc) if (sc->tulip_setupbuf != NULL) { bus_dmamem_free(sc->tulip_setup_tag, sc->tulip_setupbuf, sc->tulip_setup_map); - bus_dmamap_destroy(sc->tulip_setup_tag, sc->tulip_setup_map); sc->tulip_setup_map = NULL; sc->tulip_setupbuf = NULL; }