flash/stmqspi: fix build error with -Werror=maybe-uninitialized
commit310c9800c72f37dd50e855513badc908fcfbafcf
authorTarek BOCHKATI <tarek.bouchkati@st.com>
Mon, 11 Jan 2021 18:21:06 +0000 (11 19:21 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Mon, 18 Jan 2021 15:31:51 +0000 (18 15:31 +0000)
treedfd418fc31150ca81ec6fa7c5c23864a16646202
parentaaa6110d9b027acd1d027ef27c723ec9cf2381a0
flash/stmqspi: fix build error with -Werror=maybe-uninitialized

using gcc 9.3 on ubuntu focal fossa with -Werror=maybe-uninitialized
we get this error:
  /src/flash/nor/stmqspi.c: In function ‘read_flash_id’:
  /src/flash/nor/stmqspi.c:1948:6: error: ‘retval’ may be used uninitialized

Change-Id: Ifd8ae60df847fc61e22ca100c008e3914c9af79b
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@st.com>
Reviewed-on: http://openocd.zylin.com/6012
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nor/stmqspi.c