Skip to content

Commit

Permalink
x86/efi: Remove unused find_bits() function
Browse files Browse the repository at this point in the history
Left behind by commit fc37206 ("efi/libstub: Move Graphics Output
Protocol handling to generic code").

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
  • Loading branch information
Lukas Wunner authored and Matt Fleming committed Sep 9, 2016
1 parent 22c2b77 commit 15cf7ca
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions arch/x86/boot/compressed/eboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,29 +286,6 @@ void efi_char16_printk(efi_system_table_t *table, efi_char16_t *str)
}
}

static void find_bits(unsigned long mask, u8 *pos, u8 *size)
{
u8 first, len;

first = 0;
len = 0;

if (mask) {
while (!(mask & 0x1)) {
mask = mask >> 1;
first++;
}

while (mask & 0x1) {
mask = mask >> 1;
len++;
}
}

*pos = first;
*size = len;
}

static efi_status_t
__setup_efi_pci32(efi_pci_io_protocol_32 *pci, struct pci_setup_rom **__rom)
{
Expand Down

0 comments on commit 15cf7ca

Please sign in to comment.