summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/libstub/x86-stub.c
diff options
context:
space:
mode:
authorchen zhang <chenzhang@kylinos.cn>2022-09-07 04:32:55 +0200
committerArd Biesheuvel <ardb@kernel.org>2022-09-07 09:03:53 +0200
commit7a1ec84ffba9e90ac772ddb33ea9c3899ed8d2c9 (patch)
tree0464df3a33684812df9958515d8122c5b56f72b0 /drivers/firmware/efi/libstub/x86-stub.c
parentefi: libstub: Disable struct randomization (diff)
downloadlinux-7a1ec84ffba9e90ac772ddb33ea9c3899ed8d2c9.tar.xz
linux-7a1ec84ffba9e90ac772ddb33ea9c3899ed8d2c9.zip
efi/x86: libstub: remove unused variable
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>
Diffstat (limited to 'drivers/firmware/efi/libstub/x86-stub.c')
-rw-r--r--drivers/firmware/efi/libstub/x86-stub.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/firmware/efi/libstub/x86-stub.c b/drivers/firmware/efi/libstub/x86-stub.c
index 05ae8bcc9d67..43ca665af610 100644
--- a/drivers/firmware/efi/libstub/x86-stub.c
+++ b/drivers/firmware/efi/libstub/x86-stub.c
@@ -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;