summaryrefslogtreecommitdiff
path: root/board/esd/cpci5200
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-04 15:55:17 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:11:28 +0100
commit03331853528ad2b70bc0dca06e2d4354ec899c4f (patch)
tree586c6bd301f09253168881fe44699d000ecf35fd /board/esd/cpci5200
parent17834a5c63b7a4327205107d9d3e689326f527a4 (diff)
downloadu-boot-imx-03331853528ad2b70bc0dca06e2d4354ec899c4f.zip
u-boot-imx-03331853528ad2b70bc0dca06e2d4354ec899c4f.tar.gz
u-boot-imx-03331853528ad2b70bc0dca06e2d4354ec899c4f.tar.bz2
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>
Diffstat (limited to 'board/esd/cpci5200')
-rw-r--r--board/esd/cpci5200/strataflash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/board/esd/cpci5200/strataflash.c b/board/esd/cpci5200/strataflash.c
index 9b578b5..9de51f3 100644
--- a/board/esd/cpci5200/strataflash.c
+++ b/board/esd/cpci5200/strataflash.c
@@ -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) {