diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2013-08-24 02:10:18 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2013-08-24 02:10:18 +0000 |
commit | cc132eb50ea785800b6efb75540cacb61644b208 (patch) | |
tree | 054c1e6873b476f147b9adbfdde01d38c09b878d /serial.c | |
parent | c33530f5baea950b3e494f0c05c7fb5a0859f90b (diff) | |
download | flashrom-cc132eb50ea785800b6efb75540cacb61644b208.tar.gz |
Get rid of sp_die().
- Add return values to sp_flush_stream(), sp_pass_writen(),
sp_execute_opbuf(), sp_execute_opbuf_noflush(),
sp_check_opbuf_usage(), sp_do_read_n().
- Use those return values to propagate errors instead of exiting.
In some places this has to wait for core API changes (error handling for
chip_readb, chip_readn, chip_write) hence comments are added instead.
Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1719 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -41,12 +41,6 @@ fdtype sp_fd = SER_INV_FD; -void __attribute__((noreturn)) sp_die(char *msg) -{ - perror(msg); - exit(1); -} - #ifdef _WIN32 struct baudentry { DWORD flag; |