projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
flash/stmqspi: fix build error with -Werror=maybe-uninitialized
[fw/openocd]
/
src
/
flash
/
nor
/
stmqspi.c
diff --git
a/src/flash/nor/stmqspi.c
b/src/flash/nor/stmqspi.c
index f54e4975dd95ce2050896db7001730e4e3bfed22..a013336a0f8b1bdbea1800ddaab05d829aa79dd9 100644
(file)
--- a/
src/flash/nor/stmqspi.c
+++ b/
src/flash/nor/stmqspi.c
@@
-1945,7
+1945,7
@@
static int read_flash_id(struct flash_bank *bank, uint32_t *id1, uint32_t *id2)
uint32_t io_base = stmqspi_info->io_base;
uint8_t byte;
unsigned int type, count, len1, len2;
- int retval;
+ int retval
= ERROR_OK
;
/* invalidate both ids */
*id1 = 0;