This is an automated email from Gerrit.

Konstantin Kraskovsky (kraskovs...@otsl.jp) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4651

-- gerrit

commit f20581812e34de8376cf3bfb7b99f5f60dcce08a
Author: Konstantin Kraskovskiy <kraskovs...@otsl.jp>
Date:   Tue Aug 14 23:27:42 2018 +0900

    Some style fixes
    
    Change-Id: I2314863c88fb57b7a8df47355cfb2789814687e7
    Signed-off-by: Konstantin Kraskovskiy <kraskovs...@otsl.jp>

diff --git a/contrib/loaders/flash/ec-1/ec1_loader.c 
b/contrib/loaders/flash/ec-1/ec1_loader.c
index 520c9d6..49a4846 100644
--- a/contrib/loaders/flash/ec-1/ec1_loader.c
+++ b/contrib/loaders/flash/ec-1/ec1_loader.c
@@ -99,7 +99,7 @@ unsigned ec1_write(
                                                        *(unsigned *)SMCR = 
SSLKP | SPIWE | SPIE;
                                                r0_count -= 2;
                                                r3_p_buffer += 2;
-                                               r2_offset +=2;
+                                               r2_offset += 2;
                                }
                                break;
                        default:
@@ -122,7 +122,7 @@ unsigned ec1_write(
                                                        *(unsigned *)SMCR = 
SSLKP | SPIWE | SPIE;
                                                r0_count -= 2;
                                                r3_p_buffer += 2;
-                                               r2_offset +=2;
+                                               r2_offset += 2;
                                                break;
                                        default:
                                                *(unsigned *)SMENR = v_smenr | 
SPIDE_WORD;
@@ -133,7 +133,7 @@ unsigned ec1_write(
                                                        *(unsigned *)SMCR = 
SSLKP | SPIWE | SPIE;
                                                r0_count -= 4;
                                                r3_p_buffer += 4;
-                                               r2_offset +=4;
+                                               r2_offset += 4;
                                }
                }
 
diff --git a/src/flash/nor/ec1.c b/src/flash/nor/ec1.c
index 5cdc65c..842b011 100644
--- a/src/flash/nor/ec1.c
+++ b/src/flash/nor/ec1.c
@@ -190,7 +190,7 @@ static int spibsc_start_transfer(struct flash_bank *bank)
                                spibsc_get_reg(bank, CMNSR), &regval);
                if (retval != ERROR_OK)
                        return retval;
-       } while(!(regval & TEND));
+       } while (!(regval & TEND));
 
        return ERROR_OK;
 }
@@ -254,7 +254,7 @@ static int spibsc_set_mode(struct flash_bank *bank, bool 
mode)
                                spibsc_get_reg(bank, CMNSR), &regval);
                if (retval != ERROR_OK)
                        return retval;
-       } while(regval != 1);
+       } while (regval != 1);
 
        /* Flush SPIBSC cache */
        retval = spibsc_cache_flush(bank);

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to