Skip to content

Commit 7a1ec84

Browse files
chen zhangardbiesheuvel
authored andcommitted
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 <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent 1a38879 commit 7a1ec84

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/firmware/efi/libstub/x86-stub.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ adjust_memory_range_protection(unsigned long start, unsigned long size)
220220
unsigned long end, next;
221221
unsigned long rounded_start, rounded_end;
222222
unsigned long unprotect_start, unprotect_size;
223-
int has_system_memory = 0;
224223

225224
if (efi_dxe_table == NULL)
226225
return;

0 commit comments

Comments
 (0)