]> git.sur5r.net Git - u-boot/commitdiff
board/g2000/strataflash.c: fix GCC 4.6 build warnings
authorWolfgang Denk <wd@denx.de>
Sat, 29 Oct 2011 09:37:44 +0000 (09:37 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 3 Nov 2011 19:39:23 +0000 (20:39 +0100)
Fix:
strataflash.c: In function 'flash_write_cfiword':
strataflash.c:669:11: warning: variable 'ctladdr' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/g2000/strataflash.c

index effe65a36f86567b9cc0b3da2d7aba4d1a2f232b..fd72f47310e8ced567c7acd76df608bb212a5d41 100644 (file)
@@ -666,14 +666,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: