Simplify jtag_add_plain_ir_scan:
- Use jtag_set_error instead of accessing jtag_error directly. - Wrap function arguments to fit everything in 80 columns. git-svn-id: svn://svn.berlios.de/openocd/trunk@2119 b42882b7-edfa-0310-969c-e2dbd0fdcd60__archive__
parent
9bdbe70ceb
commit
e3b1937aaf
|
@ -474,15 +474,14 @@ void jtag_add_ir_scan(int in_num_fields, scan_field_t *in_fields, tap_state_t st
|
||||||
* This function assumes that the caller handles extra fields for bypassed TAPs
|
* This function assumes that the caller handles extra fields for bypassed TAPs
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void jtag_add_plain_ir_scan(int in_num_fields, const scan_field_t *in_fields, tap_state_t state)
|
void jtag_add_plain_ir_scan(int in_num_fields, const scan_field_t *in_fields,
|
||||||
|
tap_state_t state)
|
||||||
{
|
{
|
||||||
int retval;
|
|
||||||
|
|
||||||
jtag_prelude(state);
|
jtag_prelude(state);
|
||||||
|
|
||||||
retval=interface_jtag_add_plain_ir_scan(in_num_fields, in_fields, state);
|
int retval = interface_jtag_add_plain_ir_scan(
|
||||||
if (retval!=ERROR_OK)
|
in_num_fields, in_fields, state);
|
||||||
jtag_error=retval;
|
jtag_set_error(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
void jtag_add_callback(jtag_callback1_t f, u8 *in)
|
void jtag_add_callback(jtag_callback1_t f, u8 *in)
|
||||||
|
|
Loading…
Reference in New Issue