staging: vme_user: remove unused variable
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>
Fri, 26 Jun 2015 20:39:42 +0000 (23:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 05:50:15 +0000 (22:50 -0700)
Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_user.c

index ef876a44e0cf006e95a91ce2623c2a4e2465e66a..947a38eb9160ac320dd7e1b0e0451f1c1e9d58fd 100644 (file)
@@ -143,18 +143,14 @@ static ssize_t resource_to_user(int minor, char __user *buf, size_t count,
 static ssize_t resource_from_user(unsigned int minor, const char __user *buf,
                                  size_t count, loff_t *ppos)
 {
-       ssize_t copied = 0;
-
        if (count > image[minor].size_buf)
                count = image[minor].size_buf;
 
        if (__copy_from_user(image[minor].kern_buf, buf, (unsigned long)count))
                return -EFAULT;
 
-       copied = vme_master_write(image[minor].resource, image[minor].kern_buf,
-                                 count, *ppos);
-
-       return copied;
+       return vme_master_write(image[minor].resource, image[minor].kern_buf,
+                               count, *ppos);
 }
 
 static ssize_t buffer_to_user(unsigned int minor, char __user *buf,