From 2a95e8713b941f58a7f5ff94aee38edae70af15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Mon, 30 Jul 2012 19:42:33 +0000 Subject: Remove more exit calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- pony_spi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pony_spi.c') diff --git a/pony_spi.c b/pony_spi.c index b5dfc2f..6ce467e 100644 --- a/pony_spi.c +++ b/pony_spi.c @@ -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); -- cgit v1.1