[PATCH] lib: fwts_uefi: modify the return value of the fwts_uefi_get_interface

Ivan Hu ivan.hu at canonical.com
Tue Apr 23 04:37:45 UTC 2013


The return value should be the UEFI_IFACE_SYSFS, when the efivars not found.

Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
 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;
-- 
1.7.9.5




More information about the fwts-devel mailing list