Commit 2c9ac98a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix sparse warnings in tiglusb.c driver

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 45ad1e29
...@@ -310,11 +310,11 @@ tiglusb_ioctl (struct inode *inode, struct file *filp, ...@@ -310,11 +310,11 @@ tiglusb_ioctl (struct inode *inode, struct file *filp,
ret = -EIO; ret = -EIO;
break; break;
case IOCTL_TIUSB_GET_MAXPS: case IOCTL_TIUSB_GET_MAXPS:
if (copy_to_user((int *) arg, &s->max_ps, sizeof(int))) if (copy_to_user((int __user *) arg, &s->max_ps, sizeof(int)))
return -EFAULT; return -EFAULT;
break; break;
case IOCTL_TIUSB_GET_DEVID: case IOCTL_TIUSB_GET_DEVID:
if (copy_to_user((int *) arg, &s->dev->descriptor.idProduct, if (copy_to_user((int __user *) arg, &s->dev->descriptor.idProduct,
sizeof(int))) sizeof(int)))
return -EFAULT; return -EFAULT;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment