From patchwork Sat Feb 15 20:58:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 236398 List-Id: U-Boot discussion From: xypron.glpk at gmx.de (Heinrich Schuchardt) Date: Sat, 15 Feb 2020 21:58:31 +0100 Subject: [PATCH 1/1] arm: mvebu: drivers/ddr: remove redundant assignment Message-ID: <20200215205831.22308-1-xypron.glpk@gmx.de> 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 --- drivers/ddr/marvell/axp/ddr3_init.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.25.0 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))