diff options
author | Niklas Söderlund <niso@kth.se> | 2012-09-07 07:07:07 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2012-09-07 07:07:07 +0000 |
commit | 7145a50f5315c2f2a04d31c4d93e8e1387c9948d (patch) | |
tree | 1b0eeb996e3bab8ee51af96ae9b0a5c007d095ee /mcp6x_spi.c | |
parent | d932fd0d8cad0c185b7167e44512c9d1f10af52f (diff) | |
download | flashrom-7145a50f5315c2f2a04d31c4d93e8e1387c9948d.tar.gz flashrom-7145a50f5315c2f2a04d31c4d93e8e1387c9948d.tar.bz2 flashrom-7145a50f5315c2f2a04d31c4d93e8e1387c9948d.zip |
Remove exit calls from sp_sync_read_timeout and sp_synchronize
Add return values to sp_synchronize so we can signal a failure to the
only upstream caller (serprog_init), which is prepared to propagate a failure.
sp_sync_read_timeout was harder to fix because it already used a return
value, but we needed to distinguish two different failure modes. This
solution distinguishes them by the sign of the return values, which maintains
readability as much as possible.
Thanks to Niklas Söderlund for the original patch and idea.
Corresponding to flashrom svn r1595.
Signed-off-by: Niklas Söderlund <niso@kth.se>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'mcp6x_spi.c')
0 files changed, 0 insertions, 0 deletions