From: Philippe Schenker Date: Fri, 3 May 2019 13:57:23 +0000 (+0200) Subject: iio: stmpe-adc: Remove unnecessary assignment X-Git-Tag: v5.3-rc1~126^2~470^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1f4c9a3c78c70b05b2d844cc72c17d3620ba543;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/stmpe-adc.c b/drivers/iio/adc/stmpe-adc.c index 7921f827c6ec4..c018069064160 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);