1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-23 02:04:32 +03:00

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.
This commit is contained in:
Stefan Beller 2013-12-30 23:32:22 +01:00 committed by Kay Sievers
parent 34a3baa4db
commit b8265d4f8e

View File

@ -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)