summaryrefslogtreecommitdiff
path: root/nuttx/configs/ea3152
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/ea3152
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/ea3152')
-rw-r--r--nuttx/configs/ea3152/src/up_mem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/configs/ea3152/src/up_mem.c b/nuttx/configs/ea3152/src/up_mem.c
index 3bd826ec3..234a4a9fc 100644
--- a/nuttx/configs/ea3152/src/up_mem.c
+++ b/nuttx/configs/ea3152/src/up_mem.c
@@ -157,7 +157,6 @@
static void lpc31_sdraminitialize(void)
{
- uint32_t tmp;
uint32_t regval;
/* These run-time calculations can be reduced dramatically if hclk is
@@ -266,7 +265,7 @@ static void lpc31_sdraminitialize(void)
* 16bit mode
*/
- tmp = getreg32(LPC31_EXTSDRAM0_VSECTION | (0x23 << 13));
+ (void)getreg32(LPC31_EXTSDRAM0_VSECTION | (0x23 << 13));
putreg32((MPMC_DYNCONFIG0_MDSDRAM|MPMC_DYNCONFIG_HP16_32MX16),
LPC31_MPMC_DYNCONFIG0);