aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kurz <akurz@blala.de>2016-02-28 23:21:47 +0100
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2016-02-29 19:09:32 +0000
commita252cb064d13d96763447af20eb457f1fce080e5 (patch)
tree022a55aab5056efef3ba789c68d4dea6fa446cf7
parent6581bf5f15f404a9a219cfed8eebced76b4414a5 (diff)
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> Reviewed-on: http://openocd.zylin.com/3369 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
-rw-r--r--src/flash/nor/non_cfi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/flash/nor/non_cfi.c b/src/flash/nor/non_cfi.c
index 72f11e55..7636a367 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;