From: Antonio Borneo Date: Sat, 12 Jun 2010 03:01:24 +0000 (+0800) Subject: TARGET/ARM920T: fix compile warning X-Git-Tag: v0.5.0-rc1~644 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20724e33250c48aa8f1e9332d1704dd8d58cda9b;p=openocd TARGET/ARM920T: fix compile warning Commit 0538081246fafbfb74d554bb1b758412534aa254 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 --- diff --git a/src/target/arm920t.c b/src/target/arm920t.c index 31751960..03aa233d 100644 --- a/src/target/arm920t.c +++ b/src/target/arm920t.c @@ -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;