From: Wolfgang Denk Date: Fri, 4 Nov 2011 15:55:17 +0000 (+0000) Subject: board/esd/cpci5200/strataflash.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~296 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=03331853528ad2b70bc0dca06e2d4354ec899c4f;p=u-boot board/esd/cpci5200/strataflash.c: Fix GCC 4.6 build warning Fix: strataflash.c: In function 'flash_write_cfiword': strataflash.c:681:11: warning: variable 'ctladdr' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk Cc: Reinhard Arlt --- diff --git a/board/esd/cpci5200/strataflash.c b/board/esd/cpci5200/strataflash.c index 9b578b5f5e..9de51f3eab 100644 --- a/board/esd/cpci5200/strataflash.c +++ b/board/esd/cpci5200/strataflash.c @@ -678,12 +678,10 @@ 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; + cptr.cp = (uchar *)dest; /* Check if Flash is (sufficiently) erased */ switch (info->portwidth) {