Skip to content

Commit

Permalink
efi/x86: libstub: remove unused variable
Browse files Browse the repository at this point in the history
The variable "has_system_memory" is unused in function
‘adjust_memory_range_protection’, remove it.

Signed-off-by: chen zhang <chenzhang@kylinos.cn>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
  • Loading branch information
chen zhang authored and Ard Biesheuvel committed Sep 7, 2022
1 parent 1a38879 commit 7a1ec84
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/firmware/efi/libstub/x86-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ adjust_memory_range_protection(unsigned long start, unsigned long size)
unsigned long end, next;
unsigned long rounded_start, rounded_end;
unsigned long unprotect_start, unprotect_size;
int has_system_memory = 0;

if (efi_dxe_table == NULL)
return;
Expand Down

0 comments on commit 7a1ec84

Please sign in to comment.