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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-04 18:41:44 +08:00 committed by Petro Karashchenko
parent 27a7ff41b5
commit d5fe952b17

View File

@ -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 */