Skip to content

Commit 6daff4a

Browse files
authored
thermal: qcom-spmi-adc-tm5: drop IIO_VAL_INT check in adc_tm5_get_temp (#984)
thermal: qcom-spmi-adc-tm5: drop IIO_VAL_INT check in adc_tm5_get_temp
2 parents 0ceb529 + 6073a13 commit 6daff4a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/thermal/qcom/qcom-spmi-adc-tm5.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,6 @@ static int adc_tm5_get_temp(struct thermal_zone_device *tz, int *temp)
369369
if (ret < 0)
370370
return ret;
371371

372-
if (ret != IIO_VAL_INT)
373-
return -EINVAL;
374-
375372
return 0;
376373
}
377374

0 commit comments

Comments
 (0)