summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-buffer.c
diff options
context:
space:
mode:
authorLaurent Navet <laurent.navet@gmail.com>2015-05-30 22:35:36 +0200
committerJonathan Cameron <jic23@kernel.org>2015-06-01 08:47:22 +0100
commitff7d4f5981a8a139ead70adef3c1d0ed574bca01 (patch)
treec4c3ddeee75d31674d33a57815d9cedb6a4fd732 /drivers/iio/industrialio-buffer.c
parent9d4752544d17a10a40be5fc5ef68edcae5363599 (diff)
downloadlinux-ff7d4f5981a8a139ead70adef3c1d0ed574bca01.tar.gz
linux-ff7d4f5981a8a139ead70adef3c1d0ed574bca01.tar.bz2
linux-ff7d4f5981a8a139ead70adef3c1d0ed574bca01.zip
iio: buffer: remove unneeded test
The same code is executed regardless ret value, so this test can be removed. Also fix coverity scan CID 1268786. Signed-off-by: Laurent Navet <laurent.navet@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-buffer.c')
-rw-r--r--drivers/iio/industrialio-buffer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c
index 11291259b7b9..dad61ab9b36f 100644
--- a/drivers/iio/industrialio-buffer.c
+++ b/drivers/iio/industrialio-buffer.c
@@ -888,8 +888,6 @@ static ssize_t iio_buffer_store_enable(struct device *dev,
ret = __iio_update_buffers(indio_dev,
NULL, indio_dev->buffer);
- if (ret < 0)
- goto done;
done:
mutex_unlock(&indio_dev->mlock);
return (ret < 0) ? ret : len;