]> git.sur5r.net Git - openocd/commitdiff
flash/nor/non_cfi.c: cleanup, member double-intialization
authorAlexander Kurz <akurz@blala.de>
Sun, 28 Feb 2016 22:21:47 +0000 (23:21 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Mon, 29 Feb 2016 19:09:32 +0000 (19:09 +0000)
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>
Reviewed-on: http://openocd.zylin.com/3369
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/flash/nor/non_cfi.c

index 72f11e55382a6f73b72016659f6e206c333fc53a..7636a3670e0519f85de025cbb6dfa7b36b3fa766 100644 (file)
@@ -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;