2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-07-25 14:06:37 +10:00

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>
This commit is contained in:
Antonio Borneo 2010-06-12 11:01:24 +08:00 committed by Øyvind Harboe
parent 4532dc7831
commit 20724e3325

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;