From 2edc081924e1fe31f789d618bcff912d8a6043df Mon Sep 17 00:00:00 2001 From: stefanct 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. Signed-off-by: Niklas Söderlund Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1557 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- buspirate_spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'buspirate_spi.c') diff --git a/buspirate_spi.c b/buspirate_spi.c index 8e649d8..a488fc3 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 -- cgit v1.2.1