X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fboot%2Fboot-efi.c;h=1c80126cc5eed1fc7d12aaec15586b426e95cf57;hb=6a0e376c1cd303ff09777e5d18f070fe43e6b915;hp=33840b6864e83820be915dca43e6f9384988c2e5;hpb=c51d84dc09476d9c06b8aac726220bf3c7d62e8d;p=elogind.git diff --git a/src/boot/boot-efi.c b/src/boot/boot-efi.c index 33840b686..1c80126cc 100644 --- a/src/boot/boot-efi.c +++ b/src/boot/boot-efi.c @@ -95,7 +95,7 @@ static int find_active_entry(struct boot_info *info) { void *buf; size_t l; size_t i; - int err = -ENOENT; + int err; err = efi_get_variable(EFI_VENDOR_GLOBAL, "BootCurrent", NULL, &buf, &l); if (err < 0)