path: root/serial.c
diff options
authorStefan Tauner <>2013-08-24 02:10:18 +0000
committerStefan Tauner <>2013-08-24 02:10:18 +0000
commitbdead0d27dc03c2f40b36d98dc94b717f38d56e7 (patch)
tree054c1e6873b476f147b9adbfdde01d38c09b878d /serial.c
parent89edf36c177eec2b1a2cbbcaff48c4e9a946a190 (diff)
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. Corresponding to flashrom svn r1719. Signed-off-by: Stefan Tauner <> Acked-by: Stefan Tauner <>
Diffstat (limited to 'serial.c')
1 files changed, 0 insertions, 6 deletions
diff --git a/serial.c b/serial.c
index 562a95a..4d912ba 100644
--- a/serial.c
+++ b/serial.c
@@ -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;
OpenPOWER on IntegriCloud