diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:35:09 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:35:09 +0000 |
commit | e43979e7020ea9d05a3c0a2af444f292eacb6c53 (patch) | |
tree | bfe4610aa5c9f094b8d214588e8d1d6356e6cb7d /src/flash/at91sam7.c | |
parent | 8591335ba6556d788999ac29f1efbdbe0cb3554a (diff) | |
download | riscv-openocd-e43979e7020ea9d05a3c0a2af444f292eacb6c53.zip riscv-openocd-e43979e7020ea9d05a3c0a2af444f292eacb6c53.tar.gz riscv-openocd-e43979e7020ea9d05a3c0a2af444f292eacb6c53.tar.bz2 |
- Replace 'if(' with 'if ('.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2357 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/at91sam7.c')
-rw-r--r-- | src/flash/at91sam7.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/at91sam7.c b/src/flash/at91sam7.c index cfe0a43..ca6e2c4 100644 --- a/src/flash/at91sam7.c +++ b/src/flash/at91sam7.c @@ -890,7 +890,7 @@ static int at91sam7_erase(struct flash_bank_s *bank, int first, int last) at91sam7_read_clock_info(bank); at91sam7_set_flash_mode(bank, FMR_TIMING_FLASH); - if(erase_all) + if (erase_all) { if (at91sam7_flash_command(bank, EA, 0) != ERROR_OK) { @@ -1027,7 +1027,7 @@ static int at91sam7_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t o /* Write one block to the PageWriteBuffer */ buffer_pos = (pagen-first_page)*dst_min_alignment; wcount = CEIL(count,4); - if((retval = target_write_memory(target, bank->base+pagen*dst_min_alignment, 4, wcount, buffer+buffer_pos)) != ERROR_OK) + if ((retval = target_write_memory(target, bank->base+pagen*dst_min_alignment, 4, wcount, buffer+buffer_pos)) != ERROR_OK) { return retval; } |