From: Heinrich Schuchardt Date: Sat, 15 Feb 2020 20:58:31 +0000 (+0100) Subject: arm: mvebu: drivers/ddr: remove redundant assignment X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=a1dd1fcb6ede14f74d3c7ec1319a6f3f9cd23f6a;p=u-boot.git arm: mvebu: drivers/ddr: remove redundant assignment The value of local variable ecc is immediately overwritten. So we can remove the first assignment. Signed-off-by: Heinrich Schuchardt Reviewed-by: Stefan Roese --- diff --git a/drivers/ddr/marvell/axp/ddr3_init.c b/drivers/ddr/marvell/axp/ddr3_init.c index 13df9126e7..30ad5d4151 100644 --- a/drivers/ddr/marvell/axp/ddr3_init.c +++ b/drivers/ddr/marvell/axp/ddr3_init.c @@ -434,10 +434,6 @@ static u32 ddr3_init_main(void) scrub_size = 0; #endif -#if defined(ECC_SUPPORT) && defined(AUTO_DETECTION_SUPPORT) - ecc = DRAM_ECC; -#endif - #if defined(ECC_SUPPORT) && defined(AUTO_DETECTION_SUPPORT) ecc = 0; if (ddr3_check_config(BUS_WIDTH_ECC_TWSI_ADDR, CONFIG_ECC))