]> git.sur5r.net Git - openocd/commit
flash: nor: stm32l4x: fix warning in probe
authorPaul Fertser <fercerpav@gmail.com>
Wed, 17 Jan 2018 21:07:29 +0000 (00:07 +0300)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 25 Jan 2018 07:22:57 +0000 (07:22 +0000)
commite3a5f1613bcceb4508917a7f79348167503effab
treeec5014601a3e1cad3294babf8c08875b0f36e43a
parentf02327d85953152743dbb02d9ceeaa5b59da9ebe
flash: nor: stm32l4x: fix warning in probe

Reading options word can fail, so this needs to be handled.

Reported by Clang static analyzer.

Change-Id: I9754cab9c4446fa2b20d4b44b0e20724d1bc1beb
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/4352
Tested-by: jenkins
Reviewed-by: Tim "mithro" Ansell <mithro@mithis.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/flash/nor/stm32l4x.c