From patchwork Tue Apr 23 04:37:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 238749 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 54DBD2C00F6 for ; Tue, 23 Apr 2013 14:37:56 +1000 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1UUUzK-0007xZ-66; Tue, 23 Apr 2013 04:37:54 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1UUUzI-0007wR-DX for fwts-devel@lists.ubuntu.com; Tue, 23 Apr 2013 04:37:52 +0000 Received: from [175.41.48.77] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1UUUzH-0003Lz-NR; Tue, 23 Apr 2013 04:37:52 +0000 From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] lib: fwts_uefi: modify the return value of the fwts_uefi_get_interface Date: Tue, 23 Apr 2013 12:37:45 +0800 Message-Id: <1366691865-12418-1-git-send-email-ivan.hu@canonical.com> X-Mailer: git-send-email 1.7.9.5 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com The return value should be the UEFI_IFACE_SYSFS, when the efivars not found. Signed-off-by: Ivan Hu Acked-by: Colin Ian King Acked-by: Alex Hung --- src/lib/src/fwts_uefi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/src/fwts_uefi.c b/src/lib/src/fwts_uefi.c index 8149d23..7a9f7c6 100644 --- a/src/lib/src/fwts_uefi.c +++ b/src/lib/src/fwts_uefi.c @@ -135,7 +135,7 @@ static int fwts_uefi_get_interface(char **path) if (statbuf.f_type == SYS_FS_MAGIC) { efivars_interface = UEFI_IFACE_SYSFS; - return UEFI_IFACE_EFIVARS; + return UEFI_IFACE_SYSFS; } return UEFI_IFACE_UNKNOWN;