diff options
author | Niklas Söderlund <niso@kth.se> | 2012-07-30 19:42:33 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2012-07-30 19:42:33 +0000 |
commit | 2a95e8713b941f58a7f5ff94aee38edae70af15d (patch) | |
tree | f97dccd7ef57d80a4fbee2c5d23a67869c298cb0 /buspirate_spi.c | |
parent | 00ec027368e5ef46d9dec430124357915dc8b903 (diff) | |
download | flashrom-2a95e8713b941f58a7f5ff94aee38edae70af15d.tar.gz flashrom-2a95e8713b941f58a7f5ff94aee38edae70af15d.tar.bz2 flashrom-2a95e8713b941f58a7f5ff94aee38edae70af15d.zip |
Remove more exit calls
This patch removes the remaining exit calls from
- sp_openserport
- sp_opensocket
- sp_docommand
- internal_init
Almost all of this was done by Niklas.
Corresponding to flashrom svn r1557.
Signed-off-by: Niklas Söderlund <niso@kth.se>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'buspirate_spi.c')
-rw-r--r-- | buspirate_spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buspirate_spi.c b/buspirate_spi.c index 8e649d861..a488fc33c 100644 --- a/buspirate_spi.c +++ b/buspirate_spi.c @@ -39,7 +39,8 @@ static int buspirate_serialport_setup(char *dev) { /* 115200bps, 8 databits, no parity, 1 stopbit */ sp_fd = sp_openserport(dev, 115200); - /* FIXME: Error checking */ + if (sp_fd < 0) + return 1; return 0; } #else |