]> git.sur5r.net Git - u-boot/commitdiff
board/sbc405/strataflash.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Tue, 29 Nov 2011 22:17:56 +0000 (22:17 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 1 Dec 2011 23:17:06 +0000 (00:17 +0100)
Fix:
strataflash.c: In function 'flash_write_cfiword':
strataflash.c:673:11: warning: variable 'ctladdr' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
board/sbc405/strataflash.c

index e5863d6cedf1f94531c81279da21c16a78f3e235..b0d3c6c76faa46baccf23cee7edf0efe2d054a96 100644 (file)
@@ -670,14 +670,11 @@ static ulong flash_get_size (ulong base, int banknum)
 static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t cword)
 {
 
-       cfiptr_t ctladdr;
        cfiptr_t cptr;
        int flag;
 
-       ctladdr.cp = flash_make_addr(info, 0, 0);
        cptr.cp = (uchar *)dest;
 
-
        /* Check if Flash is (sufficiently) erased */
        switch(info->portwidth) {
        case FLASH_CFI_8BIT: