summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-10-29 09:37:44 +0000
committerWolfgang Denk <wd@denx.de>2011-11-03 20:39:23 +0100
commita0f21ff18a9dd4dffd4d3533613903ab1e70e14b (patch)
tree0817d1c366a6c45af16d28455363b5fbeb5285f2
parent8e119b03c53d6fae93e045a7884d306f7f4348aa (diff)
downloadu-boot-imx-a0f21ff18a9dd4dffd4d3533613903ab1e70e14b.zip
u-boot-imx-a0f21ff18a9dd4dffd4d3533613903ab1e70e14b.tar.gz
u-boot-imx-a0f21ff18a9dd4dffd4d3533613903ab1e70e14b.tar.bz2
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>
-rw-r--r--board/g2000/strataflash.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/board/g2000/strataflash.c b/board/g2000/strataflash.c
index effe65a..fd72f47 100644
--- a/board/g2000/strataflash.c
+++ b/board/g2000/strataflash.c
@@ -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)
{
- 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: