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:
parent
34a3baa4db
commit
b8265d4f8e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user