diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2015-06-26 23:39:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-14 22:50:15 -0700 |
commit | 457ab28619abd1a87eefbb2615bb54ede51e339f (patch) | |
tree | 0c1f9b3435782711e1469e279691244b58bd12aa /drivers/staging/vme | |
parent | 7c78e0cdd0baaea087f342330ec1cc44cf4312e8 (diff) | |
download | linux-457ab28619abd1a87eefbb2615bb54ede51e339f.tar.gz linux-457ab28619abd1a87eefbb2615bb54ede51e339f.tar.bz2 linux-457ab28619abd1a87eefbb2615bb54ede51e339f.zip |
staging: vme_user: remove unused variable
Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vme')
-rw-r--r-- | drivers/staging/vme/devices/vme_user.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index ef876a44e0cf..947a38eb9160 100644 --- a/drivers/staging/vme/devices/vme_user.c +++ b/drivers/staging/vme/devices/vme_user.c @@ -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, |