Skip to contentSkip to conversation

dm: ddr: socfpga: don't assign values that are not used

PATCH New Heinrich Schuchardt 3 participants 3 messages Feb 20, 2021 – Feb 25, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm: ddr: socfpga: don't assign values that are not used

The values of left_edge[0] and right_edge[0] are overwritten before they are used. Remove the superfluous assignments.

Fixes 285b3cb939a8 ("dm: ddr: socfpga: fix gen5 ddr driver to not use bss")
---
 drivers/ddr/altera/sequencer.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/ddr/altera/sequencer.c +0 -7
index 2dbde49a9c..6b9b2e9094 100644
@@ -3202,13 +3202,6 @@ rw_mgr_mem_calibrate_writes_center(struct socfpga_sdrseq *seq,
 	/* Centre DM */
 	debug_cond(DLEVEL >= 2, "%s:%d write_center: DM\n", __func__, __LINE__);
 
-	/*
-	 * Set the left and right edge of each bit to an illegal value.
-	 * Use (seq->iocfg->io_out1_delay_max + 1) as an illegal value.
-	 */
-	left_edge[0]  = seq->iocfg->io_out1_delay_max + 1;
-	right_edge[0] = seq->iocfg->io_out1_delay_max + 1;
-
 	/* Search for the/part of the window with DM shift. */
 	search_window(seq, 1, rank_bgn, write_group, &bgn_curr, &end_curr,
 		      &bgn_best, &end_best, &win_best, 0);

--
2.30.0

#1 lore raw

PATCH 1/1 dm: ddr: socfpga: don't assign values that are not used

Quoted 10 lines · Heinrich Schuchardt

The values of left_edge[0] and right_edge[0] are overwritten before they are used. Remove the superfluous assignments.

Fixes 285b3cb939a8 ("dm: ddr: socfpga: fix gen5 ddr driver to not use bss")
---
 drivers/ddr/altera/sequencer.c | 7 -------
 1 file changed, 7 deletions(-)
#2 lore raw

PATCH 1/1 dm: ddr: socfpga: don't assign values that are not used

In reply to Heinrich Schuchardt
Quoted 6 lines · Heinrich Schuchardt

The values of left_edge[0] and right_edge[0] are overwritten before they are used. Remove the superfluous assignments.

Fixes 285b3cb939a8 ("dm: ddr: socfpga: fix gen5 ddr driver to not use bss")

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210225/7aef4643/attachment.sig>