From 95d2a2372421aeddae01f1af51279ab7989e46b5 Mon Sep 17 00:00:00 2001 From: zwelch Date: Tue, 23 Jun 2009 22:37:21 +0000 Subject: - Replace 'for(' with 'for ('. git-svn-id: svn://svn.berlios.de/openocd/trunk@2360 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/cfi.c | 4 ++-- src/flash/flash.c | 4 ++-- src/flash/nand_ecc.c | 2 +- src/flash/pic32mx.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/flash') diff --git a/src/flash/cfi.c b/src/flash/cfi.c index 52989074..f6ddead3 100644 --- a/src/flash/cfi.c +++ b/src/flash/cfi.c @@ -212,7 +212,7 @@ static uint16_t cfi_query_u16(flash_bank_t *bank, int sector, uint32_t offset) if (cfi_info->x16_as_x8) { uint8_t i; - for(i=0;i<2;i++) + for (i=0;i<2;i++) target_read_memory(target, flash_address(bank, sector, offset+i), bank->bus_width, 1, &data[i*bank->bus_width] ); } @@ -234,7 +234,7 @@ static uint32_t cfi_query_u32(flash_bank_t *bank, int sector, uint32_t offset) if (cfi_info->x16_as_x8) { uint8_t i; - for(i=0;i<4;i++) + for (i=0;i<4;i++) target_read_memory(target, flash_address(bank, sector, offset+i), bank->bus_width, 1, &data[i*bank->bus_width] ); } diff --git a/src/flash/flash.c b/src/flash/flash.c index 02505b03..796af715 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -770,13 +770,13 @@ static int handle_flash_fill_command(struct command_context_s *cmd_ctx, char *cm switch (wordsize) { case 4: - for(i = 0; i < chunk_count; i++) + for (i = 0; i < chunk_count; i++) { target_buffer_set_u32(target, chunk + i * wordsize, pattern); } break; case 2: - for(i = 0; i < chunk_count; i++) + for (i = 0; i < chunk_count; i++) { target_buffer_set_u16(target, chunk + i * wordsize, pattern); } diff --git a/src/flash/nand_ecc.c b/src/flash/nand_ecc.c index 567e3b38..c154d697 100644 --- a/src/flash/nand_ecc.c +++ b/src/flash/nand_ecc.c @@ -77,7 +77,7 @@ int nand_calculate_ecc(struct nand_device_s *device, const uint8_t *dat, uint8_t reg1 = reg2 = reg3 = 0; /* Build up column parity */ - for(i = 0; i < 256; i++) { + for (i = 0; i < 256; i++) { /* Get CP0 - CP5 from table */ idx = nand_ecc_precalc_table[*dat++]; reg1 ^= (idx & 0x3f); diff --git a/src/flash/pic32mx.c b/src/flash/pic32mx.c index 378d9b24..65bdef1c 100644 --- a/src/flash/pic32mx.c +++ b/src/flash/pic32mx.c @@ -620,7 +620,7 @@ static int pic32mx_probe(struct flash_bank_s *bank) num_pages = 12; } else { /* 0xBD000000: Program flash size varies with device */ - for(i=0; pic32mx_devs[i].name != NULL; i++) + for (i=0; pic32mx_devs[i].name != NULL; i++) if (pic32mx_devs[i].devid == ((device_id >> 12) & 0xff)) { num_pages = pic32mx_devs[i].pfm_size; break; @@ -704,7 +704,7 @@ static int pic32mx_info(struct flash_bank_s *bank, char *buf, int buf_size) PIC32MX_MANUF_ID); return ERROR_FLASH_OPERATION_FAILED; } - for(i=0; pic32mx_devs[i].name != NULL; i++) + for (i=0; pic32mx_devs[i].name != NULL; i++) if (pic32mx_devs[i].devid == ((device_id >> 12) & 0xff)) { printed = snprintf(buf, buf_size, "PIC32MX%s", pic32mx_devs[i].name); break; -- cgit v1.2.3