From d5fe952b1771ef2cd74bc6fdb026a6660816a2f0 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 4 Nov 2022 18:41:44 +0800 Subject: [PATCH] Fix Error: chip/lpc54_emc.c:421:12: error: explicitly assigning value of variable of type 'uint32_t' (aka 'unsigned int') to itself Signed-off-by: Xiang Xiao --- arch/arm/src/lpc54xx/lpc54_emc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/lpc54xx/lpc54_emc.c b/arch/arm/src/lpc54xx/lpc54_emc.c index 85b6183f5c..8cf65d4ad5 100644 --- a/arch/arm/src/lpc54xx/lpc54_emc.c +++ b/arch/arm/src/lpc54xx/lpc54_emc.c @@ -418,7 +418,6 @@ void lpc54_emc_sdram_initialize( /* Set the right mode setting value. */ data = *(volatile uint32_t *)addr; - data = data; } if (config->dyndev) @@ -445,7 +444,6 @@ void lpc54_emc_sdram_initialize( /* Set the right mode setting value. */ data = *(volatile uint32_t *)addr; - data = data; } } @@ -468,6 +466,8 @@ void lpc54_emc_sdram_initialize( regval |= EMC_DYNCONFIG_B; putreg32(regval, regaddr); } + + UNUSED(data); } #endif /* CONFIG_LPC54_EMC_DYNAMIC */