From fb7b802ddaa1440fdba829eff5373c7d9425f582 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 6 Jan 2004 04:54:25 +0000 Subject: Fix some misuse of NULL where 0 is intended. Obtained from: FreeBSD CVS --- bsd-core/drm_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsd-core/drm_dma.c') diff --git a/bsd-core/drm_dma.c b/bsd-core/drm_dma.c index 8d87c38a..4570a867 100644 --- a/bsd-core/drm_dma.c +++ b/bsd-core/drm_dma.c @@ -74,7 +74,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]); -- cgit v1.2.3