mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
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>
This commit is contained in:
parent
b5e89ed53e
commit
13e4a9c851
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ int drm_addmap_ioctl(struct inode *inode, struct file *filp,
|
||||||
|
|
||||||
if (copy_to_user(argp, maplist->map, sizeof(drm_map_t)))
|
if (copy_to_user(argp, maplist->map, sizeof(drm_map_t)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
if (put_user(maplist->user_token, &argp->handle))
|
if (put_user((void *)maplist->user_token, &argp->handle))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue