]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: drivers/ddr: remove redundant assignment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 Feb 2020 20:58:31 +0000 (21:58 +0100)
committerStefan Roese <sr@denx.de>
Tue, 14 Apr 2020 11:16:42 +0000 (13:16 +0200)
The value of local variable ecc is immediately overwritten. So we can
remove the first assignment.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/ddr/marvell/axp/ddr3_init.c

index 13df9126e772438b0cb49f6d5333f7e4906f6a79..30ad5d4151f9f4fe7d218909b7ca0e710ac4ede8 100644 (file)
@@ -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))