From: Stefan Beller Date: Mon, 30 Dec 2013 22:32:22 +0000 (+0100) Subject: boot-efi: Remove superfluous assignment X-Git-Tag: v209~589 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=b8265d4f8e5cb05c1dacfd3b177c993ef2611723 boot-efi: Remove superfluous assignment 2 lines after the changed line we assign err to efi_get_variable(...) unconditionally, so it makes no sense to initialize it to some value. --- 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)