summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jtag/jtag.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index 1038aff6..41b1ab38 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -428,15 +428,13 @@ void jtag_alloc_in_value32(scan_field_t *field)
interface_jtag_alloc_in_value32(field);
}
-void jtag_add_ir_scan_noverify(int in_num_fields, const scan_field_t *in_fields, tap_state_t state)
+void jtag_add_ir_scan_noverify(int in_count, const scan_field_t *in_fields,
+ tap_state_t state)
{
- int retval;
jtag_prelude(state);
- retval=interface_jtag_add_ir_scan(in_num_fields, in_fields, state);
- if (retval!=ERROR_OK)
- jtag_error=retval;
-
+ int retval = interface_jtag_add_ir_scan(in_count, in_fields, state);
+ jtag_set_error(retval);
}