summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/drm_dma.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/drm/drm_dma.h')
-rw-r--r--sys/dev/drm/drm_dma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_dma.h b/sys/dev/drm/drm_dma.h
index 9090a1b..7cf3d17 100644
--- a/sys/dev/drm/drm_dma.h
+++ b/sys/dev/drm/drm_dma.h
@@ -75,7 +75,7 @@ void DRM(dma_takedown)(drm_device_t *dev)
dma->bufs[i].buf_count,
dma->bufs[i].seg_count);
for (j = 0; j < dma->bufs[i].seg_count; j++) {
- if (dma->bufs[i].seglist[j] != NULL)
+ if (dma->bufs[i].seglist[j] != 0)
DRM(pci_free)(dev, dma->bufs[i].buf_size,
(void *)dma->bufs[i].seglist[j],
dma->bufs[i].seglist_bus[j]);
OpenPOWER on IntegriCloud