summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-06-12 11:07:47 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-12 12:08:00 +0200
commitdcc7de4f9b4dfa58ed8a8712c4c146a3c83aba17 (patch)
treeaa62954b27a46c8a9c02afb5732950e52ad0b28b
parent20724e33250c48aa8f1e9332d1704dd8d58cda9b (diff)
downloadopenocd_libswd-dcc7de4f9b4dfa58ed8a8712c4c146a3c83aba17.tar.gz
openocd_libswd-dcc7de4f9b4dfa58ed8a8712c4c146a3c83aba17.tar.bz2
openocd_libswd-dcc7de4f9b4dfa58ed8a8712c4c146a3c83aba17.tar.xz
openocd_libswd-dcc7de4f9b4dfa58ed8a8712c4c146a3c83aba17.zip
TARGET/ARM920T: fix return value
Function arm920t_write_memory() default return value should be ERROR_OK. All cases of local errors are handled immediately and not further propagated. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
-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 03aa233d..d7096486 100644
--- a/src/target/arm920t.c
+++ b/src/target/arm920t.c
@@ -711,7 +711,7 @@ int arm920t_write_memory(struct target *target, uint32_t address,
}
}
- return retval;
+ return ERROR_OK;
}
// EXPORTED to FA256