]> git.sur5r.net Git - u-boot/commitdiff
board/amirix/ap1000/flash.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Tue, 29 Nov 2011 22:17:45 +0000 (22:17 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 1 Dec 2011 23:10:17 +0000 (00:10 +0100)
Fix:
flash.c: In function 'flash_write_cfiword':
flash.c:778: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/amirix/ap1000/flash.c

index 1e742e5275489f5a7763449ecc690b4b62319ae9..bf8877ec6a1727cb44469c09c91ab45f82d283cd 100644 (file)
@@ -774,12 +774,9 @@ 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 */