summaryrefslogtreecommitdiff
path: root/linux-core
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-core
parentbb5112b616080033ab9f09092098527f2aa09b70 (diff)
sparse cleanups from kernel: Al Viro
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bufs.c6
-rw-r--r--linux-core/drm_drv.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c
index d50090bb..69511f91 100644
--- a/linux-core/drm_bufs.c
+++ b/linux-core/drm_bufs.c
@@ -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),
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index c4d4391d..42831be0 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -545,7 +545,7 @@ static int DRM(takedown)( drm_device_t *dev )
#endif
if ( dev->lock.hw_lock ) {
dev->sigdata.lock = dev->lock.hw_lock = NULL; /* SHM removed */
- dev->lock.filp = 0;
+ dev->lock.filp = NULL;
wake_up_interruptible( &dev->lock.lock_queue );
}