From d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020 Mon Sep 17 00:00:00 2001 From: zwelch Date: Tue, 23 Jun 2009 22:39:18 +0000 Subject: - Fixes '[+]=' whitespace - Replace '\(\w\)\([+]=\)(' with '\1 \2 ('. - Replace '\(\w\)\([+]=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2364 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/cfi.c | 2 +- src/flash/ecos.c | 2 +- src/flash/mflash.c | 2 +- src/flash/ocl/at91sam7x/main.c | 2 +- src/flash/ocl/at91sam7x/samflash.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/flash') diff --git a/src/flash/cfi.c b/src/flash/cfi.c index f6ddead3..1d4ae537 100644 --- a/src/flash/cfi.c +++ b/src/flash/cfi.c @@ -1014,7 +1014,7 @@ static void cfi_fix_code_endian(target_t *target, uint8_t *dest, const uint32_t for (i=0; i< count; i++) { target_buffer_set_u32(target, dest, *src); - dest+=4; + dest += 4; src++; } } diff --git a/src/flash/ecos.c b/src/flash/ecos.c index 5d1badd6..ec3b3c13 100644 --- a/src/flash/ecos.c +++ b/src/flash/ecos.c @@ -319,7 +319,7 @@ static int eCosBoard_flash(ecosflash_flash_bank_t *info, void *data, uint32_t ad uint32_t i; - for (i=0; ichunk) diff --git a/src/flash/mflash.c b/src/flash/mflash.c index 8518df19..b26e62b7 100644 --- a/src/flash/mflash.c +++ b/src/flash/mflash.c @@ -278,7 +278,7 @@ static int mg_dsk_wait(mg_io_type_wait wait, uint32_t time) duration_stop_measure(&duration, NULL); t=duration.duration.tv_usec/1000; - t+=duration.duration.tv_sec*1000; + t += duration.duration.tv_sec*1000; if (t > time) break; diff --git a/src/flash/ocl/at91sam7x/main.c b/src/flash/ocl/at91sam7x/main.c index 3d88d91a..6ecbf35a 100644 --- a/src/flash/ocl/at91sam7x/main.c +++ b/src/flash/ocl/at91sam7x/main.c @@ -64,7 +64,7 @@ void cmd_flash(uint32 cmd) result=0; pagenum=adr/flash_page_size; - for (bi=0; biflash_page_count) break; + if ((page_num += flash_lock_pages)>flash_page_count) break; lockbits>>=1; } -- cgit v1.2.3