From eb3d0635d4830969d10d5fe8aef17cebb2f3fd15 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 31 Jul 2004 07:26:52 +0000 Subject: fixes for using userspace pointers found by sparse utility From: Dave Airlie --- shared-core/i915_mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shared-core/i915_mem.c') diff --git a/shared-core/i915_mem.c b/shared-core/i915_mem.c index 2a2379d0..40098514 100644 --- a/shared-core/i915_mem.c +++ b/shared-core/i915_mem.c @@ -237,7 +237,7 @@ void i915_mem_takedown( struct mem_block **heap ) } DRM_FREE( *heap, sizeof(**heap) ); - *heap = 0; + *heap = NULL; } @@ -249,7 +249,7 @@ static struct mem_block **get_heap( drm_i915_private_t *dev_priv, case I915_MEM_REGION_AGP: return &dev_priv->agp_heap; default: - return 0; + return NULL; } } -- cgit v1.2.3