summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-06-12 11:01:24 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-12 12:07:53 +0200
commit20724e33250c48aa8f1e9332d1704dd8d58cda9b (patch)
treeef1d5c0132e3898f36e5186fea1598b9b6b546fa /src
parent4532dc78314a543f205e15d37d1bc7fa03df7595 (diff)
downloadopenocd+libswd-20724e33250c48aa8f1e9332d1704dd8d58cda9b.tar.gz
openocd+libswd-20724e33250c48aa8f1e9332d1704dd8d58cda9b.tar.bz2
openocd+libswd-20724e33250c48aa8f1e9332d1704dd8d58cda9b.tar.xz
openocd+libswd-20724e33250c48aa8f1e9332d1704dd8d58cda9b.zip
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 <borneo.antonio@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/target/arm920t.c2
1 files changed, 1 insertions, 1 deletions
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;