]> git.sur5r.net Git - u-boot/commitdiff
board/gw8260/flash.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:13:08 +0000 (05:13 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:47:55 +0000 (22:47 +0100)
Fix:
flash.c: In function 'flash_init':
flash.c:81:16: warning: variable 'size' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Oliver Brown <obrown@adventnetworks.com>
board/gw8260/flash.c

index c1c26ea1b5f7566fb52d046598d61449e1c131ea..fb29659e290c1b69351e215451621b2faa716bc9 100644 (file)
@@ -78,7 +78,6 @@ static int write_word (flash_info_t *info, ulong dest, ulong data);
  */
 unsigned long flash_init(void)
 {
-       unsigned long size;
        int i;
 
        /* Init: no FLASHes known */
@@ -86,7 +85,7 @@ unsigned long flash_init(void)
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
        /* for now, only support the 4 MB Flash SIMM */
-       size = flash_get_size((vu_long *) CONFIG_SYS_FLASH0_BASE,
+       (void)flash_get_size((vu_long *) CONFIG_SYS_FLASH0_BASE,
                              &flash_info[0]);
        /*
         * protect monitor and environment sectors