[flashrom] [PATCH 1/2] Kill exit() in enable_flash_sb400
Tadas Slotkus
devtadas at gmail.com
Sun Sep 4 16:30:27 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. */
Thanks to Uwe, this is now applicable for review.
More information about the flashrom
mailing list