diff options
author | Dave Airlie <airlied@linux.ie> | 2004-07-15 13:03:55 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-07-15 13:03:55 +0000 |
commit | 8efddd01e8a2254b4ed00dff0d55827b6f2b35ce (patch) | |
tree | a52af2302e3b2c803c7f46bed2567d16d074ebd9 /linux | |
parent | bb5112b616080033ab9f09092098527f2aa09b70 (diff) |
sparse cleanups from kernel: Al Viro
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drm_bufs.h | 6 | ||||
-rw-r--r-- | linux/drm_drv.h | 2 |
2 files changed, 4 insertions, 4 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), diff --git a/linux/drm_drv.h b/linux/drm_drv.h index c4d4391d..42831be0 100644 --- a/linux/drm_drv.h +++ b/linux/drm_drv.h @@ -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 ); } |