All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Loeliger <jdl@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Cleaned up unused and conditionally used local variables.
Date: Fri, 27 Oct 2006 07:47:22 -0500	[thread overview]
Message-ID: <E1GdR7K-0004AC-4e@jdl.com> (raw)


Signed-off-by: Jon Loeliger <jdl@freescale.com>
---
 cpu/mpc86xx/spd_sdram.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/cpu/mpc86xx/spd_sdram.c b/cpu/mpc86xx/spd_sdram.c
index 97bbf43..b18e822 100644
--- a/cpu/mpc86xx/spd_sdram.c
+++ b/cpu/mpc86xx/spd_sdram.c
@@ -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,
-- 
1.4.2.1.gc5d7

             reply	other threads:[~2006-10-27 12:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-27 12:47 Jon Loeliger [this message]
2006-10-27 15:48 ` [U-Boot-Users] [PATCH] Cleaned up unused and conditionally used local variables Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GdR7K-0004AC-4e@jdl.com \
    --to=jdl@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.