From: chen zhang Date: Wed, 7 Sep 2022 02:32:55 +0000 (+0800) Subject: efi/x86: libstub: remove unused variable X-Git-Tag: v6.1-rc5~418^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a1ec84ffba9e90ac772ddb33ea9c3899ed8d2c9;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Ard Biesheuvel --- 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;