Re: [U-Boot] [PATCH 07/19] 44x_spd_ddr.c: Fix GCC 4.6 build warnings

2011-11-16 Thread Wolfgang Denk
Dear Stefan Roese,

In message <1321380144-6445-1-git-send-email...@denx.de> you wrote:
> Fix:
> 44x_spd_ddr.c: In function 'program_cfg0':
> 44x_spd_ddr.c:384:16: warning: variable 'dimm_64bit' set but not used 
> [-Wunused-but-set-variable]
> 44x_spd_ddr.c:383:16: warning: variable 'dimm_32bit' set but not used 
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Stefan Roese 
> ---
>  arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c |4 
>  1 files changed, 0 insertions(+), 4 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
A student of  probability  soon  realizes  that  by  its  nature  the
billion-to-one  chance  crops  up nine times out of ten, and that the
greatest odds boil down to a double-sided statement: it will  happen,
or it will not. - Terry Pratchett, _The Dark Side of the Sun_
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 07/19] 44x_spd_ddr.c: Fix GCC 4.6 build warnings

2011-11-15 Thread Stefan Roese
Fix:
44x_spd_ddr.c: In function 'program_cfg0':
44x_spd_ddr.c:384:16: warning: variable 'dimm_64bit' set but not used 
[-Wunused-but-set-variable]
44x_spd_ddr.c:383:16: warning: variable 'dimm_32bit' set but not used 
[-Wunused-but-set-variable]

Signed-off-by: Stefan Roese 
---
 arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c |4 
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c 
b/arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c
index e05daf2..8a20a2b 100644
--- a/arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c
+++ b/arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c
@@ -380,8 +380,6 @@ static void program_cfg0(unsigned long *dimm_populated,
unsigned char ecc;
unsigned char attributes;
unsigned long data_width;
-   unsigned long dimm_32bit;
-   unsigned long dimm_64bit;
 
/*
 * get Memory Controller Options 0 data
@@ -423,10 +421,8 @@ static void program_cfg0(unsigned long *dimm_populated,
(unsigned 
long)spd_read(iic0_dimm_addr[dimm_num],6) +
(((unsigned 
long)spd_read(iic0_dimm_addr[dimm_num],7)) << 8);
if (data_width == 64 || data_width == 72) {
-   dimm_64bit = TRUE;
cfg0 |= SDRAM_CFG0_DMWD_64;
} else if (data_width == 32 || data_width == 40) {
-   dimm_32bit = TRUE;
cfg0 |= SDRAM_CFG0_DMWD_32;
} else {
printf("WARNING: DIMM with datawidth of %lu 
bits.\n",
-- 
1.7.7.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot