efi/x86: libstub: remove unused variable
authorchen zhang <chenzhang@kylinos.cn>
Wed, 7 Sep 2022 02:32:55 +0000 (10:32 +0800)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 7 Sep 2022 07:03:53 +0000 (09:03 +0200)
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>
drivers/firmware/efi/libstub/x86-stub.c

index 05ae8bc..43ca665 100644 (file)
@@ -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;