From 20724e33250c48aa8f1e9332d1704dd8d58cda9b Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 12 Jun 2010 11:01:24 +0800 Subject: [PATCH] TARGET/ARM920T: fix compile warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/target/arm920t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5