Skip to content

Commit bd1d709

Browse files
arndbIngo Molnar
authored andcommitted
efi/libstub/x86: Fix unused-variable warning
The only users of these got removed, so they also need to be removed to avoid warnings: arch/x86/boot/compressed/eboot.c: In function 'setup_efi_pci': arch/x86/boot/compressed/eboot.c:117:16: error: unused variable 'nr_pci' [-Werror=unused-variable] unsigned long nr_pci; ^~~~~~ arch/x86/boot/compressed/eboot.c: In function 'setup_uga': arch/x86/boot/compressed/eboot.c:244:16: error: unused variable 'nr_ugas' [-Werror=unused-variable] unsigned long nr_ugas; ^~~~~~~ Fixes: 2732ea0 ("efi/libstub: Use a helper to iterate over a EFI handle array") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ac3c76c commit bd1d709

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/boot/compressed/eboot.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ static void setup_efi_pci(struct boot_params *params)
118118
void **pci_handle = NULL;
119119
efi_guid_t pci_proto = EFI_PCI_IO_PROTOCOL_GUID;
120120
unsigned long size = 0;
121-
unsigned long nr_pci;
122121
struct setup_data *data;
123122
efi_handle_t h;
124123
int i;
@@ -245,7 +244,6 @@ setup_uga(struct screen_info *si, efi_guid_t *uga_proto, unsigned long size)
245244
u32 width, height;
246245
void **uga_handle = NULL;
247246
efi_uga_draw_protocol_t *uga = NULL, *first_uga;
248-
unsigned long nr_ugas;
249247
efi_handle_t handle;
250248
int i;
251249

0 commit comments

Comments
 (0)