Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13e4a9c8 authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie
Browse files

drm: cast handle to a pointer to avoid warning



Andrew reported a warning on this line, just case to void *.

Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent b5e89ed5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}