aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nand
diff options
context:
space:
mode:
authorErhan Kurubas <erhan.kurubas@espressif.com>2022-05-09 23:01:35 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-05-21 09:00:51 +0000
commit631d0bddfaadac63a7d8ff3ef916614d62c86b1e (patch)
tree6cd5b922f7244fc94f117a6a3f75a16a89895929 /src/flash/nand
parent0f11f951e7774c54953f3f06916dcb62ac9b086d (diff)
downloadriscv-openocd-631d0bddfaadac63a7d8ff3ef916614d62c86b1e.zip
riscv-openocd-631d0bddfaadac63a7d8ff3ef916614d62c86b1e.tar.gz
riscv-openocd-631d0bddfaadac63a7d8ff3ef916614d62c86b1e.tar.bz2
flash: fix clang static analyzer build errors
Fixes "variable set but not used" errors. Tested with Homebrew clang version 13.0.1 Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com> Change-Id: Ia90baf5b4857db2b5569ebe6adbbb832de772aad Reviewed-on: https://review.openocd.org/c/openocd/+/6971 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/flash/nand')
-rw-r--r--src/flash/nand/davinci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/flash/nand/davinci.c b/src/flash/nand/davinci.c
index 84f8e34..1aa7ffc 100644
--- a/src/flash/nand/davinci.c
+++ b/src/flash/nand/davinci.c
@@ -605,8 +605,6 @@ static int davinci_write_page_ecc4infix(struct nand_device *nand, uint32_t page,
/* write this "out-of-band" data -- infix */
davinci_write_block_data(nand, oob, 16);
oob += 16;
- oob_size -= 16;
-
} while (data_size);
/* the last data and OOB writes included the spare area */