1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 14:11:15 +02:00

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>
This commit is contained in:
Niklas Söderlund
2012-07-30 19:42:33 +00:00
committed by Stefan Tauner
parent 00ec027368
commit 2a95e8713b
5 changed files with 65 additions and 30 deletions

View File

@ -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);