]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
x86/efi: Remove unused find_bits() function
authorLukas Wunner <lukas@wunner.de>
Mon, 15 Aug 2016 11:52:34 +0000 (13:52 +0200)
committerMatt Fleming <matt@codeblueprint.co.uk>
Fri, 9 Sep 2016 15:08:50 +0000 (16:08 +0100)
Left behind by commit fc37206427ce ("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>
arch/x86/boot/compressed/eboot.c

index ec6d2ef12baff28b7247d88b896aca3758f4b8e9..f7fc85bf8221b9751dbf397a76e958850b2999ff 100644 (file)
@@ -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)
 {