[flashrom] [PATCH 1/2] Kill exit() in enable_flash_sb400

Tadas Slotkus devtadas at gmail.com
Mon Aug 22 00:26:37 CEST 2011


Replace it by newly created return mechanism.

Signed-off-by: Tadas Slotkus <devtadas at gmail.com>
---
 chipset_enable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/chipset_enable.c b/chipset_enable.c
index f6c5d81..ee005af 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -861,7 +861,7 @@ static int enable_flash_sb400(struct pci_dev *dev, const char *name)
 
 	if (!smbusdev) {
 		msg_perr("ERROR: SMBus device not found. Aborting.\n");
-		exit(1);
+		return ERROR_FATAL;
 	}
 
 	/* Enable some SMBus stuff. */
-- 
1.7.6





More information about the flashrom mailing list