Commit 7d173f26 authored by Nizam Haider's avatar Nizam Haider Committed by Jonathan Cameron

iio: adc: ad7793: removed unnecessary else.

Else is not generally useful after a break or return.
Signed-off-by: default avatarNizam Haider <nijamh@cdac.in>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent e0c961bd
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment