board/g2000/strataflash.c: fix GCC 4.6 build warnings
PATCH 1/1 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 <[email protected]>
--- board/g2000/strataflash.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
board/g2000/strataflash.c +0 -3
@@ -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 :
Signature · 1 line
1.7.6.4
Wolfgang Denk
AppliedPATCH 1/1 board/g2000/strataflash.c: fix GCC 4.6 build warnings
Dear Wolfgang Denk,
Quoted 9 lines · In message <[email protected]> you wrote:
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 <[email protected]>--- board/g2000/strataflash.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Looks clean and obviously correct to me, but then _everything_ I write always looks obviously correct to me. - Linus Torvalds in <[email protected]>