projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d47525
)
iio: buffer: remove unneeded test
author
Laurent Navet
<laurent.navet@gmail.com>
Sat, 30 May 2015 20:35:36 +0000
(22:35 +0200)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 1 Jun 2015 07:47:22 +0000
(08:47 +0100)
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>
drivers/iio/industrialio-buffer.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/industrialio-buffer.c
b/drivers/iio/industrialio-buffer.c
index 11291259b7b92bbce22b5195932e0d6a932a91eb..dad61ab9b36fcc0413cfdd78810cd8cdfec00a7b 100644
(file)
--- 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;