summaryrefslogtreecommitdiff
path: root/src/flash
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/flash
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/flash')
-rw-r--r--src/flash/str7x.c4
-rw-r--r--src/flash/str9xpec.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/flash/str7x.c b/src/flash/str7x.c
index a0904182..902d0336 100644
--- a/src/flash/str7x.c
+++ b/src/flash/str7x.c
@@ -273,7 +273,7 @@ static int str7x_erase(struct flash_bank_s *bank, int first, int last)
cmd = FLASH_SER | FLASH_WMS;
target_write_u32(target, str7x_get_flash_adr(bank, FLASH_CR0), cmd);
- while (((retval = str7x_status(bank)) & str7x_info->busy_bits)){
+ while (((retval = str7x_status(bank)) & str7x_info->busy_bits)) {
alive_sleep(1);
}
@@ -329,7 +329,7 @@ static int str7x_protect(struct flash_bank_s *bank, int set, int first, int last
cmd = FLASH_SPR | FLASH_WMS;
target_write_u32(target, str7x_get_flash_adr(bank, FLASH_CR0), cmd);
- while (((retval = str7x_status(bank)) & str7x_info->busy_bits)){
+ while (((retval = str7x_status(bank)) & str7x_info->busy_bits)) {
alive_sleep(1);
}
diff --git a/src/flash/str9xpec.c b/src/flash/str9xpec.c
index d74fa7d4..c1021ba0 100644
--- a/src/flash/str9xpec.c
+++ b/src/flash/str9xpec.c
@@ -101,7 +101,7 @@ static int str9xpec_register_commands(struct command_context_s *cmd_ctx)
int str9xpec_set_instr(jtag_tap_t *tap, uint32_t new_instr, tap_state_t end_state)
{
- if (tap == NULL){
+ if (tap == NULL) {
return ERROR_TARGET_INVALID;
}
@@ -671,11 +671,11 @@ static int str9xpec_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t o
check_address = sec_end;
}
- if ((offset >= sec_start) && (offset < sec_end)){
+ if ((offset >= sec_start) && (offset < sec_end)) {
first_sector = i;
}
- if ((offset + count >= sec_start) && (offset + count < sec_end)){
+ if ((offset + count >= sec_start) && (offset + count < sec_end)) {
last_sector = i;
}
}