diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-07-18 14:00:13 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-07-19 16:17:44 +0000 |
commit | 3384fb6ddae9583c2e201fc9c8a819e9df530369 (patch) | |
tree | c0b78c341908d77ff6573416eca2e98094ee0b82 /COPYING | |
parent | a136d425cebc01fa4cfb670696243fd2194dd711 (diff) | |
download | flashrom-3384fb6ddae9583c2e201fc9c8a819e9df530369.tar.gz flashrom-3384fb6ddae9583c2e201fc9c8a819e9df530369.tar.bz2 flashrom-3384fb6ddae9583c2e201fc9c8a819e9df530369.zip |
pickit2_spi: Fix "dead" assignment
We never read the first 'ret'. Let's check the first 'ret'
and exit if it failed.
Also, print the version only when the command succeeded.
Found-by: scan-build 7.0.1-8
Change-Id: I4aac5e1f3bd0604b079e1fdd9b7f09f1f4fc2d7f
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/34403
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions