mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
iio: adc: nxp-sar-adc: Remove unnecessary type casting
The readl_poll_timeout() macro returns a signed integer error code. In nxp_sar_adc_calibration_wait(), the return value is casted to u32 before being returned as int, which is unnecessary. Signed-off-by: Felix Gu <ustc.gu@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
0e2af0fc30
commit
d1e13ac7c2
|
|
@ -247,7 +247,8 @@ static inline void nxp_sar_adc_calibration_start(void __iomem *base)
|
|||
|
||||
static inline int nxp_sar_adc_calibration_wait(void __iomem *base)
|
||||
{
|
||||
u32 msr, ret;
|
||||
u32 msr;
|
||||
int ret;
|
||||
|
||||
ret = readl_poll_timeout(NXP_SAR_ADC_MSR(base), msr,
|
||||
!FIELD_GET(NXP_SAR_ADC_MSR_CALBUSY, msr),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user