commit | 3384fb6ddae9583c2e201fc9c8a819e9df530369 | [log] [tgz] |
---|---|---|
author | Elyes HAOUAS <ehaouas@noos.fr> | Thu Jul 18 14:00:13 2019 +0200 |
committer | Nico Huber <nico.h@gmx.de> | Fri Jul 19 16:17:44 2019 +0000 |
tree | c0b78c341908d77ff6573416eca2e98094ee0b82 | |
parent | a136d425cebc01fa4cfb670696243fd2194dd711 [diff] |
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>