提交 7d173f26 编写于 作者: N Nizam Haider 提交者: Jonathan Cameron

iio: adc: ad7793: removed unnecessary else.

Else is not generally useful after a break or return.
Signed-off-by: NNizam Haider <nijamh@cdac.in>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 e0c961bd
...@@ -478,10 +478,9 @@ static int ad7793_read_raw(struct iio_dev *indio_dev, ...@@ -478,10 +478,9 @@ static int ad7793_read_raw(struct iio_dev *indio_dev,
*val2 = st-> *val2 = st->
scale_avail[(st->conf >> 8) & 0x7][1]; scale_avail[(st->conf >> 8) & 0x7][1];
return IIO_VAL_INT_PLUS_NANO; return IIO_VAL_INT_PLUS_NANO;
} else { }
/* 1170mV / 2^23 * 6 */ /* 1170mV / 2^23 * 6 */
scale_uv = (1170ULL * 1000000000ULL * 6ULL); scale_uv = (1170ULL * 1000000000ULL * 6ULL);
}
break; break;
case IIO_TEMP: case IIO_TEMP:
/* 1170mV / 0.81 mV/C / 2^23 */ /* 1170mV / 0.81 mV/C / 2^23 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册