summaryrefslogtreecommitdiffstats
path: root/board/amirix
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-29 22:17:45 +0000
committerWolfgang Denk <wd@denx.de>2011-12-02 00:10:17 +0100
commit2752a525b8f6f1b591b0a053f284bc51848eb174 (patch)
tree10dbe5e68dc8baaf9e3f47b6f3ef7f267bbe9b09 /board/amirix
parentbba8f3929e1ae3c09274b8dcdf0ad7b099494f71 (diff)
downloadu-boot-2752a525b8f6f1b591b0a053f284bc51848eb174.tar.gz
u-boot-2752a525b8f6f1b591b0a053f284bc51848eb174.tar.xz
u-boot-2752a525b8f6f1b591b0a053f284bc51848eb174.zip
board/amirix/ap1000/flash.c: Fix GCC 4.6 build warning
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>
Diffstat (limited to 'board/amirix')
-rw-r--r--board/amirix/ap1000/flash.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/board/amirix/ap1000/flash.c b/board/amirix/ap1000/flash.c
index 1e742e5275..bf8877ec6a 100644
--- a/board/amirix/ap1000/flash.c
+++ b/board/amirix/ap1000/flash.c
@@ -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 */