summaryrefslogtreecommitdiffstats
path: root/spi25.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-07-18 14:00:13 +0200
committerNico Huber <nico.h@gmx.de>2019-07-19 16:17:44 +0000
commit3384fb6ddae9583c2e201fc9c8a819e9df530369 (patch)
treec0b78c341908d77ff6573416eca2e98094ee0b82 /spi25.c
parenta136d425cebc01fa4cfb670696243fd2194dd711 (diff)
downloadflashrom-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 'spi25.c')
0 files changed, 0 insertions, 0 deletions