summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-07-06 11:21:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-06 16:23:59 -0700
commita7f3943cd055f73e82e1b57468286f3d7cf9fb27 (patch)
tree8d4c9b2bd4708a0fe33b5165b14b7f99f543017d
parente97e6c4f9a5d23a1bd7141b6fa73e2f96282c03d (diff)
Staging: vme: silence a Sparse warning
Sparse complains that "arg" is not a __user pointer. The "argp" and "arg" variables are equivalent but argp is declared as a __user pointer. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-By: Martyn Welch <martyn.welch@ge.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vme/devices/vme_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c
index e24a6f95db12..0c2479e41938 100644
--- a/drivers/staging/vme/devices/vme_user.c
+++ b/drivers/staging/vme/devices/vme_user.c
@@ -474,7 +474,7 @@ static int vme_user_ioctl(struct inode *inode, struct file *file,
case CONTROL_MINOR:
switch (cmd) {
case VME_IRQ_GEN:
- copied = copy_from_user(&irq_req, (char *)arg,
+ copied = copy_from_user(&irq_req, argp,
sizeof(struct vme_irq_id));
if (copied != 0) {
printk(KERN_WARNING "Partial copy from userspace\n");