diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2022-11-02 23:11:19 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2022-11-11 20:12:48 +0000 |
commit | 1dea9ab41f988c5173325521b1e9b75274a785da (patch) | |
tree | d8439e1275ed239539da25e460b103e934f9dcf7 /src | |
parent | 5fc4882b8039dbd35f2efcd1419e83fbda9eba28 (diff) | |
download | riscv-openocd-1dea9ab41f988c5173325521b1e9b75274a785da.zip riscv-openocd-1dea9ab41f988c5173325521b1e9b75274a785da.tar.gz riscv-openocd-1dea9ab41f988c5173325521b1e9b75274a785da.tar.bz2 |
flash: stmqspi: fix clang error 'dead assignment'
The variable retval is assigned a value that is never used, as it
is reassigned few lines below.
Drop the dead assignment.
Change-Id: Id4e9134408fab3e04936d36e95724bf8d3ab55aa
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7304
Tested-by: jenkins
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/nor/stmqspi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/flash/nor/stmqspi.c b/src/flash/nor/stmqspi.c index 9c266e9..e5df3b9 100644 --- a/src/flash/nor/stmqspi.c +++ b/src/flash/nor/stmqspi.c @@ -1799,7 +1799,6 @@ static int find_sfdp_dummy(struct flash_bank *bank, int len) } } - retval = ERROR_FAIL; LOG_DEBUG("no start of SFDP header even after %u dummy bytes", count); err: |