diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-06-24 16:25:43 +1000 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2021-06-30 08:11:18 +0000 |
commit | 92b30ba80001e13356ef7e5d87738fb226dddc40 (patch) | |
tree | 1d7b9e6e359453b7b703f3750bcbbee96aada325 /spi.h | |
parent | 16419f424ea87329783e14723057939a205a51c0 (diff) | |
download | flashrom-92b30ba80001e13356ef7e5d87738fb226dddc40.tar.gz flashrom-92b30ba80001e13356ef7e5d87738fb226dddc40.tar.bz2 flashrom-92b30ba80001e13356ef7e5d87738fb226dddc40.zip |
buspirate_spi: Use non-zero return value from buspirate_sendrecv
Return values for buspirate_sendrecv come from serialport_write
and serialport_read, and those return 1s for any error. No need
to explicity assign ret = 1, because it is already 1 for error.
Follow up on commit 751afa88a7f22487069665c5d206ae490f158231
where this idea was suggested.
BUG=b:185191942
TEST=builds
Change-Id: I31fd70f607dc965d5cac1cd0116faa447dbc177a
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/55818
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'spi.h')
0 files changed, 0 insertions, 0 deletions