Don't check the dma map address for a static DMA mapping against NULL

to determine if the mapping is valid.

Submitted by:	jhb
This commit is contained in:
Bryan Venteicher 2014-06-14 23:36:17 +00:00
parent c67bc4dbda
commit 9945063d70

View File

@ -3886,7 +3886,7 @@ vmxnet3_dma_free(struct vmxnet3_softc *sc, struct vmxnet3_dma_alloc *dma)
{
if (dma->dma_tag != NULL) {
if (dma->dma_map != NULL) {
if (dma->dma_paddr != 0) {
bus_dmamap_sync(dma->dma_tag, dma->dma_map,
BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
bus_dmamap_unload(dma->dma_tag, dma->dma_map);