diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-07-21 09:18:18 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-07-21 09:18:18 +0000 |
commit | 274a20d7d29b2e82c01139599df85792c9e38540 (patch) | |
tree | 6c9e0859df93806c0bd8150fdb9cf0ad0b5c2d1f /arch.h | |
parent | ff80e68d48d05dc69c2d0b97f4af7e97573822da (diff) | |
download | flashrom-274a20d7d29b2e82c01139599df85792c9e38540.tar.gz flashrom-274a20d7d29b2e82c01139599df85792c9e38540.tar.bz2 flashrom-274a20d7d29b2e82c01139599df85792c9e38540.zip |
ft2232_spi: Improve error handling, remove exit() calls
In order to make the ft2232_spi code more usable in libflashrom (e.g. from
frontends/GUIs) there must not be any exit() calls in the code, as that
would also terminate the frontend. Thus, replace all exit() calls with
proper error handling code by returning a _unique_ negative error number,
so that the frontend (and/or user/developer) can also know a bit more
exactly _which_ error occured, not only _that_ an error occured.
Also, call ftdi_usb_close() before returning due to errors.
Corresponding to flashrom svn r1377.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Tadas Slotkus <devtadas@gmail.com>
Diffstat (limited to 'arch.h')
0 files changed, 0 insertions, 0 deletions