]> git.sur5r.net Git - openocd/blobdiff - src/flash/ocl/at91sam7x/samflash.c
- Fixes '[<>]' whitespace
[openocd] / src / flash / ocl / at91sam7x / samflash.c
index caa3dad41c7f19ef58d4bd377cd1d3a99d90201b..bcb6dd09979949d3a0e415ef4ce352925fa4fb70 100644 (file)
@@ -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;
        }
 
@@ -164,7 +164,7 @@ int flash_erase_plane(int efc_ofs)
        if ((inr(MC_FSR + efc_ofs)&MC_LOCKE)) return FLASH_STAT_LOCKE;
 
        /* set no erase before programming */
-       outr(MC_FMR + efc_ofs, inr(MC_FMR + efc_ofs)|0x80);
+       outr(MC_FMR + efc_ofs, inr(MC_FMR + efc_ofs) | 0x80);
 
        return FLASH_STAT_OK;
 }
@@ -178,7 +178,7 @@ int flash_erase_all(void)
        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);
+       if (flash_page_count > 1024) result = flash_erase_plane(0x10);
 
        return result;
 }