diff options
| author | Wolfgang Denk <wd@denx.de> | 2011-12-07 12:19:26 +0000 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-12-08 20:51:55 +0100 | 
| commit | fc86bbf692dcfed02ec436293ec4aed2a83ad15d (patch) | |
| tree | 8a68585c282e89fa445f858861d5f42ed3dd4b33 /board/w7o/flash.c | |
| parent | 75a69acbe2662f98a3f47a5b05cbad544d8a8b85 (diff) | |
| download | olio-uboot-2014.01-fc86bbf692dcfed02ec436293ec4aed2a83ad15d.tar.xz olio-uboot-2014.01-fc86bbf692dcfed02ec436293ec4aed2a83ad15d.zip | |
board/w7o/flash.c: Fix GCC 4.6 compile warning
Fix:
flash.c: In function 'flash_init':
flash.c:47:25: warning: variable 'base_b1' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/w7o/flash.c')
| -rw-r--r-- | board/w7o/flash.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/board/w7o/flash.c b/board/w7o/flash.c index e45401afa..20bd92097 100644 --- a/board/w7o/flash.c +++ b/board/w7o/flash.c @@ -44,7 +44,7 @@ unsigned long flash_init(void)  {  	int i;  	unsigned long size_b0, base_b0; -	unsigned long size_b1, base_b1; +	unsigned long size_b1;  	/* Init: no FLASHes known */  	for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) @@ -69,7 +69,6 @@ unsigned long flash_init(void)  	/* Calculate base addresses */  	base_b0 = -size_b0; -	base_b1 = -size_b1;  	/* Setup offsets for Boot Flash */  	flash_get_offsets(base_b0, &flash_info[0]); |