Skip to content

Commit

Permalink
drm: cast handle to a pointer to avoid warning
Browse files Browse the repository at this point in the history
Andrew reported a warning on this line, just case to void *.

Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Sep 25, 2005
1 parent b5e89ed commit 13e4a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/drm/drm_bufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
return -EFAULT;
if (put_user(maplist->user_token, &argp->handle))
if (put_user((void *)maplist->user_token, &argp->handle))
return -EFAULT;
return 0;
}
Expand Down

0 comments on commit 13e4a9c

Please sign in to comment.