mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-10 11:30:49 +00:00
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>
This commit is contained in:
parent
e0c961bdaf
commit
7d173f2635
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user