diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-29 22:17:56 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-02 00:17:06 +0100 |
commit | 24b0da3aebb63d945cbdad79a587dc6f90b7bec5 (patch) | |
tree | 14230c0fdd4ef2f70bfe50bfe3b66b70aeab3df4 /board/sbc405 | |
parent | ad37ef1a85114467cb8749e0ee785c1f9966109b (diff) |
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 <wd@denx.de>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/sbc405')
-rw-r--r-- | board/sbc405/strataflash.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/board/sbc405/strataflash.c b/board/sbc405/strataflash.c index e5863d6cedf..b0d3c6c76fa 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: |