diff options
author | Dave Airlie <airlied@linux.ie> | 2006-01-02 05:43:04 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-01-02 05:43:04 +0000 |
commit | 8fef6fe4f02838447edbf6e99fd16df31a486772 (patch) | |
tree | 554715c1ea0c90793fe13b36be9a8c38519d729d | |
parent | bbcba83ef70013ea2e5daad86142d1fdc84939e4 (diff) |
sparse cleanups
-rw-r--r-- | linux-core/drm_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_context.c b/linux-core/drm_context.c index b8702e6d..1fcd125e 100644 --- a/linux-core/drm_context.c +++ b/linux-core/drm_context.c @@ -232,14 +232,14 @@ 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 = (void *)(unsigned long)_entry->user_token; break; } } - if (request.handle == 0) + if (request.handle == NULL) return -EINVAL; if (copy_to_user(argp, &request, sizeof(request))) |