From: Wolfgang Denk Date: Tue, 29 Nov 2011 22:17:56 +0000 (+0000) Subject: board/sbc405/strataflash.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~106^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=24b0da3aebb63d945cbdad79a587dc6f90b7bec5;p=u-boot board/sbc405/strataflash.c: Fix GCC 4.6 build warning Fix: strataflash.c: In function 'flash_write_cfiword': strataflash.c:673: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/sbc405/strataflash.c b/board/sbc405/strataflash.c index e5863d6ced..b0d3c6c76f 100644 --- a/board/sbc405/strataflash.c +++ b/board/sbc405/strataflash.c @@ -670,14 +670,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: