mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
board/fads/fads.c: Fix GCC 4.6 build warning
Fix: fads.c: In function 'initdram': fads.c:606:7: warning: variable 'base' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
f053432a72
commit
bfdd1e186d
1 changed files with 3 additions and 1 deletions
|
@ -603,15 +603,17 @@ static int initsdram(uint base, uint *noMbytes)
|
||||||
phys_size_t initdram (int board_type)
|
phys_size_t initdram (int board_type)
|
||||||
{
|
{
|
||||||
uint sdramsz = 0; /* size of sdram in Mbytes */
|
uint sdramsz = 0; /* size of sdram in Mbytes */
|
||||||
uint base = 0; /* base of dram in bytes */
|
|
||||||
uint m = 0; /* size of dram in Mbytes */
|
uint m = 0; /* size of dram in Mbytes */
|
||||||
#ifndef CONFIG_MPC885ADS
|
#ifndef CONFIG_MPC885ADS
|
||||||
|
uint base = 0; /* base of dram in bytes */
|
||||||
uint k, s;
|
uint k, s;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FADS
|
#ifdef CONFIG_FADS
|
||||||
if (!initsdram (0x00000000, &sdramsz)) {
|
if (!initsdram (0x00000000, &sdramsz)) {
|
||||||
|
#ifndef CONFIG_MPC885ADS
|
||||||
base = sdramsz << 20;
|
base = sdramsz << 20;
|
||||||
|
#endif
|
||||||
printf ("(%u MB SDRAM) ", sdramsz);
|
printf ("(%u MB SDRAM) ", sdramsz);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue