mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 10:12:14 +02:00
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: Wolfgang Denk <wd@denx.de>
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user