[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [PATCH]: 2e50147 flash/nor/non_cfi.c: cleanup, member double-intialization
From:       gerrit () openocd ! org (gerrit)
Date:       2016-02-28 22:24:49
Message-ID: 20160228222449.67EE4198429E () mail ! openocd ! org
[Download RAW message or body]

This is an automated email from Gerrit.

Anonymous Coward (akurz@blala.de) just uploaded a new patch set to Gerrit, which you \
can find at http://openocd.zylin.com/3369

-- gerrit

commit 2e50147dc04ebcd87f24deab3d3ba6abe1e18b27
Author: Alexander Kurz <akurz@blala.de>
Date:   Sun Feb 28 23:21:47 2016 +0100

    flash/nor/non_cfi.c: cleanup, member double-intialization
    
    A struct member has been initialized twice. Found using the semantic
    pattern da/da.cocci, see coccinellery.org
    
    Change-Id: I0320afd60f1ba505758cc5bc0adcf27f572492fb
    Signed-off-by: Alexander Kurz <akurz@blala.de>

diff --git a/src/flash/nor/non_cfi.c b/src/flash/nor/non_cfi.c
index 72f11e5..7636a36 100644
--- a/src/flash/nor/non_cfi.c
+++ b/src/flash/nor/non_cfi.c
@@ -540,7 +540,6 @@ void cfi_fixup_non_cfi(struct flash_bank *bank)
 
 		pri_ext->SiliconRevision = 0x0;
 		pri_ext->EraseSuspend = 0x0;
-		pri_ext->EraseSuspend = 0x0;
 		pri_ext->BlkProt = 0x0;
 		pri_ext->TmpBlkUnprotect = 0x0;
 		pri_ext->BlkProtUnprot = 0x0;

-- 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic