diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-12-30 23:32:22 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-12-31 17:53:30 +0100 |
commit | b8265d4f8e5cb05c1dacfd3b177c993ef2611723 (patch) | |
tree | 4363fab231fb25eae7e2e561bbd6911e64c5410b /src/boot/boot-efi.c | |
parent | 34a3baa4dbd8a4032ae74cb5947b9494bf3ec106 (diff) |
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.
Diffstat (limited to 'src/boot/boot-efi.c')
-rw-r--r-- | src/boot/boot-efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/boot-efi.c b/src/boot/boot-efi.c index 33840b6864..1c80126cc5 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) |