summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2019-05-03 15:57:23 +0200
committerPhilippe Schenker <philippe.schenker@toradex.com>2019-05-24 11:34:19 +0200
commit19fddbd7766fc9f159cc07af25493ae9a6f2f3a2 (patch)
treed0dcaaf32e297206a0bed9afca0194a30f619c45 /drivers/iio
parent5ff0a86e20e91b0c606c3034aeb2b2d718123d40 (diff)
iio: stmpe-adc: Remove unnecessary assignment
Remove unnecessary assignment. This could potentially cause an issue, if the wait function runs into a timeout. Furthermore is this assignment also not there in stmpe_read_temp() Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> (cherry picked from commit b1f4c9a3c78c70b05b2d844cc72c17d3620ba543)
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/stmpe-adc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/adc/stmpe-adc.c b/drivers/iio/adc/stmpe-adc.c
index 37f4b74a5d32..87141177fbda 100644
--- a/drivers/iio/adc/stmpe-adc.c
+++ b/drivers/iio/adc/stmpe-adc.c
@@ -78,8 +78,6 @@ static int stmpe_read_voltage(struct stmpe_adc *info,
stmpe_reg_write(info->stmpe, STMPE_REG_ADC_CAPT,
STMPE_ADC_CH(info->channel));
- *val = info->value;
-
ret = wait_for_completion_interruptible_timeout
(&info->completion, STMPE_ADC_TIMEOUT);