From: Wolfgang Denk Date: Tue, 29 Nov 2011 22:17:45 +0000 (+0000) Subject: board/amirix/ap1000/flash.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~106^2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2752a525b8f6f1b591b0a053f284bc51848eb174;p=u-boot 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 Acked-by: Marek Vasut --- 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 */