This is an automated email from Gerrit.

Marc Schink ([email protected]) just uploaded a new patch set to Gerrit, which you 
can find at http://openocd.zylin.com/5737

-- gerrit

commit 3ac94583118b73cead975f69a997fcad4257a65a
Author: Marc Schink <[email protected]>
Date:   Wed Jul 1 10:23:23 2020 +0200

    flash/nor/atsamv: Use 'bool' data type
    
    Change-Id: Id4ceaf38dc5eba5b0eb62416fc357fdfc7ea21c0
    Signed-off-by: Marc Schink <[email protected]>

diff --git a/src/flash/nor/atsamv.c b/src/flash/nor/atsamv.c
index 9a53369..db39b71 100644
--- a/src/flash/nor/atsamv.c
+++ b/src/flash/nor/atsamv.c
@@ -97,7 +97,7 @@
 extern const struct flash_driver atsamv_flash;
 
 struct samv_flash_bank {
-       int      probed;
+       bool      probed;
        unsigned size_bytes;
        unsigned gpnvm[SAMV_NUM_GPNVM_BITS];
 };
@@ -379,7 +379,7 @@ static int samv_probe(struct flash_bank *bank)
 
        struct samv_flash_bank *samv_info = bank->driver_priv;
        samv_info->size_bytes = bank->size;
-       samv_info->probed = 1;
+       samv_info->probed = true;
 
        bank->base = SAMV_FLASH_BASE;
        bank->num_sectors = bank->size / SAMV_SECTOR_SIZE;

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to