TARGET/ARM920T: fix compile warning

Commit 0538081246
introduces a compile time warning:
arm920t.c: In function ‘arm920t_write_memory’:
arm920t.c:567: warning: ‘retval’ may be used uninitialized in this function

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
__archive__
Antonio Borneo 2010-06-12 11:01:24 +08:00 committed by Øyvind Harboe
parent 4532dc7831
commit 20724e3325
1 changed files with 1 additions and 1 deletions

View File

@ -592,7 +592,7 @@ int arm920t_write_memory(struct target *target, uint32_t address,
/*
* We need physical address and cb
*/
int retval = armv4_5_mmu_translate_va(target, &arm920t->armv4_5_mmu,
retval = armv4_5_mmu_translate_va(target, &arm920t->armv4_5_mmu,
address, &type, &cb, &domain, &ap, &pa);
if (retval != ERROR_OK)
return retval;