summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorNizam Haider <nizamhaider786@gmail.com>2015-11-09 13:50:45 +0100
committerJonathan Cameron <jic23@kernel.org>2015-11-15 12:14:31 +0100
commit7d173f26353df0e90ea1223b80f6834845f27435 (patch)
treeebedc9b896cedf22e5d44cd4189ab03431827ee3 /drivers/iio
parentiio: adc: mxs-lradc: Prefer using the BIT macro (diff)
downloadlinux-7d173f26353df0e90ea1223b80f6834845f27435.tar.xz
linux-7d173f26353df0e90ea1223b80f6834845f27435.zip
iio: adc: ad7793: removed unnecessary else.
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/ad7793.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/iio/adc/ad7793.c b/drivers/iio/adc/ad7793.c
index b84922a4b32e..d3eeb3fb46c2 100644
--- 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 */