summaryrefslogtreecommitdiffstats
path: root/flashrom.8
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-07-21 09:18:18 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2011-07-21 09:18:18 +0000
commit274a20d7d29b2e82c01139599df85792c9e38540 (patch)
tree6c9e0859df93806c0bd8150fdb9cf0ad0b5c2d1f /flashrom.8
parentff80e68d48d05dc69c2d0b97f4af7e97573822da (diff)
downloadast2050-flashrom-274a20d7d29b2e82c01139599df85792c9e38540.zip
ast2050-flashrom-274a20d7d29b2e82c01139599df85792c9e38540.tar.gz
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 'flashrom.8')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud