Commit 7a1ec84f authored by chen zhang's avatar chen zhang Committed by Ard Biesheuvel
Browse files

efi/x86: libstub: remove unused variable



The variable "has_system_memory" is unused in function
‘adjust_memory_range_protection’, remove it.

Signed-off-by: default avatarchen zhang <chenzhang@kylinos.cn>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 1a388792
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;