summaryrefslogtreecommitdiff
path: root/nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-25 13:15:09 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-25 13:15:09 -0600
commit3b3fcf2bfa6015d890d42b5a528f7fe7476632f7 (patch)
treecccc4fca1d7d91915ad679577b484c5c6a110e6d /nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c
parentc9b18b049b09580260188349bb32e91b59f74965 (diff)
downloadnuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.tar.gz
nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.tar.bz2
nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.zip
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
Diffstat (limited to 'nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c')
-rw-r--r--nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c b/nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c
index f8b7f5e4d..30b65e6bb 100644
--- a/nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c
+++ b/nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c
@@ -435,7 +435,6 @@ static void tc_adc_init(void)
regval = tc_adc_getreg(STM32_ADC_SQR3_OFFSET) & ADC_SQR3_RESERVED;
regval |= LCD_YD_CHANNEL;
tc_adc_putreg(STM32_ADC_SQR3_OFFSET, regval);
- regval = tc_adc_getreg(STM32_ADC_SQR3_OFFSET);
/* Set the number of conversions = 1 */