From 676f48d77db83c687740955aed6783ea6d326853 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Wed, 11 Aug 2010 11:00:02 +0200 Subject: debug: use assert's when approperiate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error was returned instead of using assert. Signed-off-by: Øyvind Harboe --- src/target/arm_jtag.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/target/arm_jtag.h') 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) { -- cgit v1.2.3