summaryrefslogtreecommitdiff
path: root/src/target/arm_jtag.h
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-08-11 11:00:02 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-08-11 11:01:14 +0200
commit676f48d77db83c687740955aed6783ea6d326853 (patch)
treebd6d2f8c8d7b6862e77fa2ec9785699a511f13b4 /src/target/arm_jtag.h
parentf941192723f7d71ae4a9a8f011dad5909f156da3 (diff)
downloadopenocd+libswd-676f48d77db83c687740955aed6783ea6d326853.tar.gz
openocd+libswd-676f48d77db83c687740955aed6783ea6d326853.tar.bz2
openocd+libswd-676f48d77db83c687740955aed6783ea6d326853.tar.xz
openocd+libswd-676f48d77db83c687740955aed6783ea6d326853.zip
debug: use assert's when approperiate
error was returned instead of using assert. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/arm_jtag.h')
-rw-r--r--src/target/arm_jtag.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/target/arm_jtag.h b/src/target/arm_jtag.h
index 37c228f8..f5812781 100644
--- a/src/target/arm_jtag.h
+++ b/src/target/arm_jtag.h
@@ -45,8 +45,7 @@ static inline int arm_jtag_set_instr(struct arm_jtag *jtag_info,
/* inline most common code path */
struct jtag_tap *tap;
tap = jtag_info->tap;
- if (tap == NULL)
- return ERROR_FAIL;
+ assert (tap != NULL);
if (buf_get_u32(tap->cur_instr, 0, tap->ir_length) != new_instr)
{