projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c961b
)
iio: adc: ad7793: removed unnecessary else.
author
Nizam Haider
<nizamhaider786@gmail.com>
Mon, 9 Nov 2015 12:50:45 +0000
(18:20 +0530)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 15 Nov 2015 11:14:31 +0000
(11:14 +0000)
Else is not generally useful after a break or return.
Signed-off-by: Nizam Haider <nijamh@cdac.in>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7793.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/ad7793.c
b/drivers/iio/adc/ad7793.c
index b84922a4b32e6bb508c8a5c812a281907102159f..d3eeb3fb46c2f8858f3e6e0a412edd1e53dd74b0 100644
(file)
--- a/
drivers/iio/adc/ad7793.c
+++ b/
drivers/iio/adc/ad7793.c
@@
-478,10
+478,9
@@
static int ad7793_read_raw(struct iio_dev *indio_dev,
*val2 = st->
scale_avail[(st->conf >> 8) & 0x7][1];
return IIO_VAL_INT_PLUS_NANO;
- } else {
- /* 1170mV / 2^23 * 6 */
- scale_uv = (1170ULL * 1000000000ULL * 6ULL);
}
+ /* 1170mV / 2^23 * 6 */
+ scale_uv = (1170ULL * 1000000000ULL * 6ULL);
break;
case IIO_TEMP:
/* 1170mV / 0.81 mV/C / 2^23 */