Replace it by newly created return mechanism.

Signed-off-by: Tadas Slotkus <[email protected]>
---
 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


_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to