From: Alexander Kurz Date: Sun, 28 Feb 2016 22:21:47 +0000 (+0100) Subject: flash/nor/non_cfi.c: cleanup, member double-intialization X-Git-Tag: v0.10.0-rc1~246 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a252cb064d13d96763447af20eb457f1fce080e5;p=openocd 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 Reviewed-on: http://openocd.zylin.com/3369 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- 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;