mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 20:52:22 -04:00
board/amirix/ap1000/flash.c: Fix GCC 4.6 build warning
Fix: flash.c: In function 'flash_write_cfiword': flash.c:778: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>
This commit is contained in:
parent
bba8f3929e
commit
2752a525b8
@ -774,12 +774,9 @@ static ulong flash_get_size (ulong base, int banknum)
|
|||||||
static int flash_write_cfiword (flash_info_t * info, ulong dest,
|
static int flash_write_cfiword (flash_info_t * info, ulong dest,
|
||||||
cfiword_t cword)
|
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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user