]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
board/w7o/flash.c: Fix GCC 4.6 compile warning
authorWolfgang Denk <wd@denx.de>
Wed, 7 Dec 2011 12:19:26 +0000 (12:19 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 8 Dec 2011 19:51:55 +0000 (20:51 +0100)
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>
board/w7o/flash.c

index e45401afaac4bbb7784a0a88ce7740742ab7f977..20bd920974c6396927db4ced03886fdd066c59fc 100644 (file)
@@ -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]);