summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/stmpe-adc.c
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2019-05-03 15:57:23 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-05-05 16:38:01 +0100
commitb1f4c9a3c78c70b05b2d844cc72c17d3620ba543 (patch)
tree30d9abe9d6f32e82a12414c4c1e261faa9506990 /drivers/iio/adc/stmpe-adc.c
parentc57c54bc9758ac0a7cacfece8eb2aba5b2732228 (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>
Diffstat (limited to 'drivers/iio/adc/stmpe-adc.c')
-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 7921f827c6ec..c01806906416 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);