diff options
Diffstat (limited to 'drivers/usb/misc/adutux.c')
-rw-r--r-- | drivers/usb/misc/adutux.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c index 564268fca07a..a540e4f206c4 100644 --- a/drivers/usb/misc/adutux.c +++ b/drivers/usb/misc/adutux.c | |||
@@ -389,10 +389,6 @@ static ssize_t adu_read(struct file *file, __user char *buffer, size_t count, | |||
389 | dev->secondary_head += (amount - i); | 389 | dev->secondary_head += (amount - i); |
390 | bytes_read += (amount - i); | 390 | bytes_read += (amount - i); |
391 | bytes_to_read -= (amount - i); | 391 | bytes_to_read -= (amount - i); |
392 | if (i) { | ||
393 | retval = bytes_read ? bytes_read : -EFAULT; | ||
394 | goto exit; | ||
395 | } | ||
396 | } else { | 392 | } else { |
397 | /* we check the primary buffer */ | 393 | /* we check the primary buffer */ |
398 | spin_lock_irqsave (&dev->buflock, flags); | 394 | spin_lock_irqsave (&dev->buflock, flags); |