Skip to contentSkip to conversation

Cleaned up unused and conditionally used local variables.

PATCH New Jon Loeliger 2 participants 2 messages Oct 27, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cleaned up unused and conditionally used local variables.

---
 cpu/mpc86xx/spd_sdram.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
cpu/mpc86xx/spd_sdram.c +2 -6
index 97bbf43..b18e822 100644
@@ -195,7 +195,6 @@ #endif
 	unsigned int tCKmin_ps, tCKmax_ps;
 	unsigned int max_data_rate;
 	unsigned int busfreq;
-	unsigned sdram_cfg_1;
 	unsigned int memsize;
 	unsigned char caslat, caslat_ctrl;
 	unsigned int trfc, trfc_clk, trfc_low, trfc_high;
@@ -209,10 +208,7 @@ #endif
 	unsigned char cpo;
 	unsigned char burst_len;
 	unsigned int mode_caslat;
-	unsigned char sdram_type;
 	unsigned char d_init;
-	unsigned int law_size;
-	volatile ccsr_local_mcm_t *mcm = &immap->im_local_mcm;
 	unsigned int tCycle_ps, modfreq;
 
 	if (ddr_num == 1)
@@ -1107,12 +1103,12 @@ spd_sdram(void)
 	unsigned int law_size_ddr1;
 	unsigned int law_size_ddr2;
 	volatile immap_t *immap = (immap_t *)CFG_IMMR;
-	volatile ccsr_ddr_t *ddr1 = &immap->im_ddr1;
-	volatile ccsr_ddr_t *ddr2 = &immap->im_ddr2;
 	volatile ccsr_local_mcm_t *mcm = &immap->im_local_mcm;
 
 #ifdef CONFIG_DDR_INTERLEAVE
 	unsigned int law_size_interleaved;
+	volatile ccsr_ddr_t *ddr1 = &immap->im_ddr1;
+	volatile ccsr_ddr_t *ddr2 = &immap->im_ddr2;
 
 	memsize_ddr1_dimm1 = spd_init(SPD_EEPROM_ADDRESS1,
 				      1, 1,
Signature · 1 line
1.4.2.1.gc5d7
#1 lore raw

PATCH 1/1 Cleaned up unused and conditionally used local variables.

cpu/mpc86xx/spd_sdram.c

Quoted 7 lines · In message <[email protected]> you wrote:
---
 cpu/mpc86xx/spd_sdram.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
cpu/mpc86xx/spd_sdram.c +0 -0

Applied. Thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Philosophy is a game with objectives and no rules.
Mathematics is a game with rules and no objectives.