Skip to content

Commit

Permalink
arm64/efi: drop redundant set_bit(EFI_CONFIG_TABLES)
Browse files Browse the repository at this point in the history
The EFI_CONFIG_TABLES bit already gets set by efi_config_init(),
so there is no reason to set it again after this function returns
successfully.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
  • Loading branch information
Ard Biesheuvel committed Nov 5, 2014
1 parent 61139eb commit 4e27d47
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/arm64/kernel/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ static int __init uefi_init(void)
efi.systab->hdr.revision & 0xffff, vendor);

retval = efi_config_init(NULL);
if (retval == 0)
set_bit(EFI_CONFIG_TABLES, &efi.flags);

out:
early_memunmap(efi.systab, sizeof(efi_system_table_t));
Expand Down

0 comments on commit 4e27d47

Please sign in to comment.