diff options
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/cfi.c | 2 | ||||
-rw-r--r-- | src/flash/ecos.c | 2 | ||||
-rw-r--r-- | src/flash/mflash.c | 2 | ||||
-rw-r--r-- | src/flash/ocl/at91sam7x/main.c | 2 | ||||
-rw-r--r-- | src/flash/ocl/at91sam7x/samflash.c | 2 |
5 files changed, 5 insertions, 5 deletions
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; i<len; i+=chunk) + for (i=0; i<len; i += chunk) { int t=len-i; if (t>chunk) 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; bi<bi_end; bi+=flash_page_size/4) { + for (bi=0; bi<bi_end; bi += flash_page_size/4) { result=flash_page_program(buffer+bi, pagenum++); if (result) break; } diff --git a/src/flash/ocl/at91sam7x/samflash.c b/src/flash/ocl/at91sam7x/samflash.c index 81c1801d..d7c21f72 100644 --- a/src/flash/ocl/at91sam7x/samflash.c +++ b/src/flash/ocl/at91sam7x/samflash.c @@ -146,7 +146,7 @@ int flash_erase_plane(int efc_ofs) if ((inr(MC_FSR+efc_ofs)&MC_LOCKE)) return FLASH_STAT_LOCKE; } - if ((page_num+=flash_lock_pages)>flash_page_count) break; + if ((page_num += flash_lock_pages)>flash_page_count) break; lockbits>>=1; } |