aboutsummaryrefslogtreecommitdiff
path: root/linux/drm_bufs.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-07-15 13:03:55 +0000
committerDave Airlie <airlied@linux.ie>2004-07-15 13:03:55 +0000
commit8efddd01e8a2254b4ed00dff0d55827b6f2b35ce (patch)
treea52af2302e3b2c803c7f46bed2567d16d074ebd9 /linux/drm_bufs.h
parentbb5112b616080033ab9f09092098527f2aa09b70 (diff)
sparse cleanups from kernel: Al Viro
Diffstat (limited to 'linux/drm_bufs.h')
-rw-r--r--linux/drm_bufs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h
index d50090bb..69511f91 100644
--- a/linux/drm_bufs.h
+++ b/linux/drm_bufs.h
@@ -126,7 +126,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
return -EINVAL;
}
map->mtrr = -1;
- map->handle = 0;
+ map->handle = NULL;
switch ( map->type ) {
case _DRM_REGISTERS:
@@ -469,7 +469,7 @@ int DRM(addbufs_agp)( struct inode *inode, struct file *filp,
buf->waiting = 0;
buf->pending = 0;
init_waitqueue_head( &buf->dma_wait );
- buf->filp = 0;
+ buf->filp = NULL;
buf->dev_priv_size = sizeof(DRIVER_BUF_PRIV_T);
buf->dev_private = DRM(alloc)( sizeof(DRIVER_BUF_PRIV_T),
@@ -693,7 +693,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp,
buf->waiting = 0;
buf->pending = 0;
init_waitqueue_head( &buf->dma_wait );
- buf->filp = 0;
+ buf->filp = NULL;
buf->dev_priv_size = sizeof(DRIVER_BUF_PRIV_T);
buf->dev_private = DRM(alloc)( sizeof(DRIVER_BUF_PRIV_T),