diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:38:12 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:38:12 +0000 |
commit | 53d605e12c3765aeedabf2bfe0c5cc338dc95d5a (patch) | |
tree | 574d59fe89c1af06fbc67b38cb2d0a3f9a6ef1d7 /src/flash/ocl | |
parent | 5e98c71436569d39ac9fe0fb66910f28c0e531f8 (diff) | |
download | openocd_libswd-53d605e12c3765aeedabf2bfe0c5cc338dc95d5a.tar.gz openocd_libswd-53d605e12c3765aeedabf2bfe0c5cc338dc95d5a.tar.bz2 openocd_libswd-53d605e12c3765aeedabf2bfe0c5cc338dc95d5a.tar.xz openocd_libswd-53d605e12c3765aeedabf2bfe0c5cc338dc95d5a.zip |
- Fixes '!=' whitespace
- Replace ')\(!=\)\(\w\)' with ') \1 \2'.
- Replace '\(\w\)\(!=\)(' with '\1 \2 ('.
- Replace '\(\w\)\(!=\)\(\w\)' with '\1 \2 \3'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2363 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/ocl')
-rw-r--r-- | src/flash/ocl/at91sam7x/main.c | 2 | ||||
-rw-r--r-- | src/flash/ocl/at91sam7x/samflash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/ocl/at91sam7x/main.c b/src/flash/ocl/at91sam7x/main.c index 2a4d28bb..3d88d91a 100644 --- a/src/flash/ocl/at91sam7x/main.c +++ b/src/flash/ocl/at91sam7x/main.c @@ -53,7 +53,7 @@ void cmd_flash(uint32 cmd) chksum=OCL_CHKS_INIT; for (bi=0; bi<bi_end; bi++) chksum^=buffer[bi]=dcc_rd(); - if (dcc_rd()!=chksum) { + if (dcc_rd() != chksum) { dcc_wr(OCL_CHKS_FAIL); return; } diff --git a/src/flash/ocl/at91sam7x/samflash.c b/src/flash/ocl/at91sam7x/samflash.c index a48e6cfd..81c1801d 100644 --- a/src/flash/ocl/at91sam7x/samflash.c +++ b/src/flash/ocl/at91sam7x/samflash.c @@ -175,7 +175,7 @@ int flash_erase_all(void) { int result; - if ((result=flash_erase_plane(0))!=FLASH_STAT_OK) return result; + if ((result=flash_erase_plane(0)) != FLASH_STAT_OK) return result; /* the second flash controller, if any */ if (flash_page_count>1024) result=flash_erase_plane(0x10); |