mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 23:23:30 +08:00
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 <wd@denx.de> Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
This commit is contained in:
parent
17834a5c63
commit
0333185352
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user