aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <dev@zapb.de>2020-05-04 16:56:14 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-05-24 21:27:08 +0100
commit17789d3762aff931bc4bffd2c129100d952ccc84 (patch)
tree9d106ec8e23c7cc9c933a45d4fb678ad6a880211
parentac870d80a9232fda1588c2784f157e6f8863f4b7 (diff)
downloadriscv-openocd-17789d3762aff931bc4bffd2c129100d952ccc84.zip
riscv-openocd-17789d3762aff931bc4bffd2c129100d952ccc84.tar.gz
riscv-openocd-17789d3762aff931bc4bffd2c129100d952ccc84.tar.bz2
flash/nor/sh_qspi: Fix dead assignment
Change-Id: I6a99076fea30062535e615244895698e51107441 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/5645 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r--src/flash/nor/sh_qspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/sh_qspi.c b/src/flash/nor/sh_qspi.c
index 931b0b1..862e43a 100644
--- a/src/flash/nor/sh_qspi.c
+++ b/src/flash/nor/sh_qspi.c
@@ -654,7 +654,7 @@ static int sh_qspi_read(struct flash_bank *bank, uint8_t *buffer,
destroy_reg_param(&reg_params[2]);
destroy_reg_param(&reg_params[3]);
- return ERROR_OK;
+ return ret;
}
/* Return ID of flash device */