arm: mvebu: drivers/ddr: remove redundant assignment
PATCH 1/1 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 <[email protected]>
--- drivers/ddr/marvell/axp/ddr3_init.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/ddr/marvell/axp/ddr3_init.c +0 -4
@@ -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 ))
--
2.25.0
PATCH 1/1 arm: mvebu: drivers/ddr: remove redundant assignment
Quoted 4 lines · Heinrich Schuchardt
The value of local variable ecc is immediately overwritten. So we can remove the first assignment.
Signed-off-by Heinrich Schuchardt <[email protected]>
Reviewed-by Stefan Roese <[email protected]>
Thanks,
Stefan