diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2012-07-30 19:42:33 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2012-07-30 19:42:33 +0000 |
commit | 2edc081924e1fe31f789d618bcff912d8a6043df (patch) | |
tree | f97dccd7ef57d80a4fbee2c5d23a67869c298cb0 /pony_spi.c | |
parent | 0683110d55d4901870d7596e9c0d28ac5584db2d (diff) | |
download | flashrom-2edc081924e1fe31f789d618bcff912d8a6043df.tar.gz |
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.
Signed-off-by: Niklas Söderlund <niso@kth.se>
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@1557 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'pony_spi.c')
-rw-r--r-- | pony_spi.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -99,6 +99,10 @@ int pony_spi_init(void) if (arg && strlen(arg)) { sp_fd = sp_openserport( arg, 9600 ); + if (sp_fd < 0) { + free(arg); + return 1; + } have_device++; } free(arg); |