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:
97b6ee5
)
iio:imu:adis16400 remove an unneeded check
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 30 Jan 2014 11:59:00 +0000
(11:59 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 3 Feb 2014 21:43:22 +0000
(21:43 +0000)
We know "ret" is zero here so there is no need to check.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/adis16400_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/imu/adis16400_core.c
b/drivers/iio/imu/adis16400_core.c
index 368660dfe135a51c3cac05dd90d7dcb75dacb7c2..411586f49dae4b3610bb41aff1cc44b93b74fe7b 100644
(file)
--- a/
drivers/iio/imu/adis16400_core.c
+++ b/
drivers/iio/imu/adis16400_core.c
@@
-281,7
+281,7
@@
static ssize_t adis16400_write_frequency(struct device *dev,
st->variant->set_freq(st, val);
mutex_unlock(&indio_dev->mlock);
- return
ret ? ret :
len;
+ return len;
}
/* Power down the device */