summaryrefslogtreecommitdiff
path: root/nuttx/configs/mx1ads/src
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/mx1ads/src
parentc9b18b049b09580260188349bb32e91b59f74965 (diff)
downloadpx4-nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.tar.gz
px4-nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.tar.bz2
px4-nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.zip
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
Diffstat (limited to 'nuttx/configs/mx1ads/src')
-rw-r--r--nuttx/configs/mx1ads/src/up_boot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/configs/mx1ads/src/up_boot.c b/nuttx/configs/mx1ads/src/up_boot.c
index 6d7576d0c..82991c1fe 100644
--- a/nuttx/configs/mx1ads/src/up_boot.c
+++ b/nuttx/configs/mx1ads/src/up_boot.c
@@ -101,7 +101,7 @@ void imx_boardinitialize(void)
imxgpio_configprimary(GPIOA, 21);
imxgpio_configprimary(GPIOA, 22);
- regval = getreg32(IMX_CS4_VSECTION + 0x0c);
- regval = getreg32(IMX_CS4_VSECTION + 0x0c);
+ (void)getreg32(IMX_CS4_VSECTION + 0x0c);
+ (void)getreg32(IMX_CS4_VSECTION + 0x0c);
#endif
}