[systemd-commits] src/boot

Kay Sievers kay at kemper.freedesktop.org
Tue Dec 31 08:54:10 PST 2013


 src/boot/boot-efi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b8265d4f8e5cb05c1dacfd3b177c993ef2611723
Author: Stefan Beller <stefanbeller at googlemail.com>
Date:   Mon Dec 30 23:32:22 2013 +0100

    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 33840b6..1c80126 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)



More information about the systemd-commits mailing list