summaryrefslogtreecommitdiff
path: root/src/jtag/core.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:49:06 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:49:06 +0000
commitc493543fc93cb693abab3146e08314b63d137470 (patch)
treeb6cf56fb5a2cc0d0f7460bae8bd3acec8ceca6f8 /src/jtag/core.c
parentdc575dc5bf8cb597a0e9a47794744ae6b1928087 (diff)
downloadopenocd_libswd-c493543fc93cb693abab3146e08314b63d137470.tar.gz
openocd_libswd-c493543fc93cb693abab3146e08314b63d137470.tar.bz2
openocd_libswd-c493543fc93cb693abab3146e08314b63d137470.tar.xz
openocd_libswd-c493543fc93cb693abab3146e08314b63d137470.zip
- Replace '){' with ') {'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2378 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/core.c')
-rw-r--r--src/jtag/core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index 330eb783..b13b4880 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -704,7 +704,7 @@ int jtag_check_value_inner(uint8_t *captured, uint8_t *in_check_value, uint8_t *
else
compare_failed = buf_cmp(captured, in_check_value, num_bits);
- if (compare_failed){
+ if (compare_failed) {
/* An error handler could have caught the failing check
* only report a problem when there wasn't a handler, or if the handler
* acknowledged the error
@@ -1024,9 +1024,9 @@ int jtag_validate_chain(void)
tap = NULL;
total_ir_length = 0;
- for (;;){
+ for (;;) {
tap = jtag_tap_next_enabled(tap);
- if (tap == NULL){
+ if (tap == NULL) {
break;
}
total_ir_length += tap->ir_length;
@@ -1048,9 +1048,9 @@ int jtag_validate_chain(void)
tap = NULL;
chain_pos = 0;
int val;
- for (;;){
+ for (;;) {
tap = jtag_tap_next_enabled(tap);
- if (tap == NULL){
+ if (tap == NULL) {
break;
}
@@ -1151,7 +1151,7 @@ static int jtag_init_inner(struct command_context_s *cmd_ctx)
LOG_DEBUG("Init JTAG chain");
tap = jtag_tap_next_enabled(NULL);
- if (tap == NULL){
+ if (tap == NULL) {
LOG_ERROR("There are no enabled taps?");
return ERROR_JTAG_INIT_FAILED;
}