diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-09-25 00:30:09 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-09-25 00:30:09 -0400 |
commit | 13e4a9c85152a49ec10e682308581ab13b437470 (patch) | |
tree | c82846763a0b6a73fe3c6cf4a64460647baa3407 /drivers | |
parent | b5e89ed53ed8d24f83ba1941c07382af00ed238e (diff) |
drm: cast handle to a pointer to avoid warning
Andrew reported a warning on this line, just case to void *.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/drm/drm_bufs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c index bb989ccea5a0..e3d372ad0076 100644 --- a/drivers/char/drm/drm_bufs.c +++ b/drivers/char/drm/drm_bufs.c | |||
@@ -309,7 +309,7 @@ int drm_addmap_ioctl(struct inode *inode, struct file *filp, | |||
309 | 309 | ||
310 | if (copy_to_user(argp, maplist->map, sizeof(drm_map_t))) | 310 | if (copy_to_user(argp, maplist->map, sizeof(drm_map_t))) |
311 | return -EFAULT; | 311 | return -EFAULT; |
312 | if (put_user(maplist->user_token, &argp->handle)) | 312 | if (put_user((void *)maplist->user_token, &argp->handle)) |
313 | return -EFAULT; | 313 | return -EFAULT; |
314 | return 0; | 314 | return 0; |
315 | } | 315 | } |