diff options
author | Marc Schink <dev@zapb.de> | 2020-05-04 16:56:14 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-05-24 21:27:08 +0100 |
commit | 17789d3762aff931bc4bffd2c129100d952ccc84 (patch) | |
tree | 9d106ec8e23c7cc9c933a45d4fb678ad6a880211 | |
parent | ac870d80a9232fda1588c2784f157e6f8863f4b7 (diff) | |
download | riscv-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.c | 2 |
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(®_params[2]); destroy_reg_param(®_params[3]); - return ERROR_OK; + return ret; } /* Return ID of flash device */ |