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:
7638c2e
)
iio: dac: ad7303: remove an unneeded check
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 30 Jan 2014 11:58:00 +0000
(11:58 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 3 Feb 2014 21:44:42 +0000
(21:44 +0000)
"ret" is zero here. There is no need to check again.
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/dac/ad7303.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/dac/ad7303.c
b/drivers/iio/dac/ad7303.c
index d0505fd22ef46c467d99f6b7e9dca18b9a4a688d..fa281003296846b35bc1086ca1eb58299f82d535 100644
(file)
--- a/
drivers/iio/dac/ad7303.c
+++ b/
drivers/iio/dac/ad7303.c
@@
-92,7
+92,7
@@
static ssize_t ad7303_write_dac_powerdown(struct iio_dev *indio_dev,
ad7303_write(st, chan->channel, st->dac_cache[chan->channel]);
mutex_unlock(&indio_dev->mlock);
- return
ret ? ret :
len;
+ return len;
}
static int ad7303_get_vref(struct ad7303_state *st,