summaryrefslogtreecommitdiff
path: root/82802ab.c
diff options
context:
space:
mode:
authoruwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-07-21 09:18:18 +0000
committeruwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-07-21 09:18:18 +0000
commit0fcef8929da498989ce37850d7b9233a60cd3789 (patch)
tree6c9e0859df93806c0bd8150fdb9cf0ad0b5c2d1f /82802ab.c
parent1a3a3bf2cdfc189aeed2c4e414b7ff280e3a5b26 (diff)
downloadflashrom-0fcef8929da498989ce37850d7b9233a60cd3789.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. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Tadas Slotkus <devtadas@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1377 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to '82802ab.c')
0 files changed, 0 insertions, 0 deletions