projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e2de83
)
arm: mvebu: drivers/ddr: remove redundant assignment
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 15 Feb 2020 20:58:31 +0000
(21:58 +0100)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/drivers/ddr/marvell/axp/ddr3_init.c
b/drivers/ddr/marvell/axp/ddr3_init.c
index 13df9126e772438b0cb49f6d5333f7e4906f6a79..30ad5d4151f9f4fe7d218909b7ca0e710ac4ede8 100644
(file)
--- 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))