Skip to content
Snippets Groups Projects
Commit a0f21ff1 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

board/g2000/strataflash.c: fix GCC 4.6 build warnings


Fix:
strataflash.c: In function 'flash_write_cfiword':
strataflash.c:669:11: warning: variable 'ctladdr' set but not used
[-Wunused-but-set-variable]

Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent 8e119b03
No related branches found
No related tags found
No related merge requests found
...@@ -666,14 +666,11 @@ static ulong flash_get_size (ulong base, int banknum) ...@@ -666,14 +666,11 @@ static ulong flash_get_size (ulong base, int banknum)
static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t cword) static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t cword)
{ {
cfiptr_t ctladdr;
cfiptr_t cptr; cfiptr_t cptr;
int flag; int flag;
ctladdr.cp = flash_make_addr(info, 0, 0);
cptr.cp = (uchar *)dest; cptr.cp = (uchar *)dest;
/* Check if Flash is (sufficiently) erased */ /* Check if Flash is (sufficiently) erased */
switch(info->portwidth) { switch(info->portwidth) {
case FLASH_CFI_8BIT: case FLASH_CFI_8BIT:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment