summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_context.c
diff options
context:
space:
mode:
authorDave Airlie2005-09-30 10:37:36 +0200
committerDave Airlie2005-09-30 10:37:36 +0200
commitb3a83639895a422b25f72eec0a5d1d88c3ac4e9e (patch)
tree1cd03d53cccb01964ea57564d7be575a29b7fec2 /drivers/char/drm/drm_context.c
parentdrm: add option to force writeback off. (diff)
downloadkernel-qcow2-linux-b3a83639895a422b25f72eec0a5d1d88c3ac4e9e.tar.gz
kernel-qcow2-linux-b3a83639895a422b25f72eec0a5d1d88c3ac4e9e.tar.xz
kernel-qcow2-linux-b3a83639895a422b25f72eec0a5d1d88c3ac4e9e.zip
drm: fix all sparse warning on 32-bit x86
Finally cleaned up the sparse warnings for the drm. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_context.c')
-rw-r--r--drivers/char/drm/drm_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/drm_context.c b/drivers/char/drm/drm_context.c
index 6380127be281..bdd168d88f49 100644
--- a/drivers/char/drm/drm_context.c
+++ b/drivers/char/drm/drm_context.c
@@ -232,7 +232,7 @@ int drm_getsareactx(struct inode *inode, struct file *filp,
map = dev->context_sareas[request.ctx_id];
up(&dev->struct_sem);
- request.handle = 0;
+ request.handle = NULL;
list_for_each_entry(_entry, &dev->maplist->head, head) {
if (_entry->map == map) {
request.handle =
@@ -240,7 +240,7 @@ int drm_getsareactx(struct inode *inode, struct file *filp,
break;
}
}
- if (request.handle == 0)
+ if (request.handle == NULL)
return -EINVAL;
if (copy_to_user(argp, &request, sizeof(request)))