diff options
author | Lukas Wunner <lukas@wunner.de> | 2016-08-15 07:52:34 -0400 |
---|---|---|
committer | Matt Fleming <matt@codeblueprint.co.uk> | 2016-09-09 11:08:50 -0400 |
commit | 15cf7cae087a2eaf5e1feeef2bbba1b5a94c7639 (patch) | |
tree | cfa46e341a2f5da7e05a45d7f76a16995c3054e1 | |
parent | 22c2b77f419bdc9317f00b395283abd33157368e (diff) |
x86/efi: Remove unused find_bits() function
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>
-rw-r--r-- | arch/x86/boot/compressed/eboot.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index ec6d2ef12baf..f7fc85bf8221 100644 --- a/arch/x86/boot/compressed/eboot.c +++ b/arch/x86/boot/compressed/eboot.c | |||
@@ -286,29 +286,6 @@ void efi_char16_printk(efi_system_table_t *table, efi_char16_t *str) | |||
286 | } | 286 | } |
287 | } | 287 | } |
288 | 288 | ||
289 | static void find_bits(unsigned long mask, u8 *pos, u8 *size) | ||
290 | { | ||
291 | u8 first, len; | ||
292 | |||
293 | first = 0; | ||
294 | len = 0; | ||
295 | |||
296 | if (mask) { | ||
297 | while (!(mask & 0x1)) { | ||
298 | mask = mask >> 1; | ||
299 | first++; | ||
300 | } | ||
301 | |||
302 | while (mask & 0x1) { | ||
303 | mask = mask >> 1; | ||
304 | len++; | ||
305 | } | ||
306 | } | ||
307 | |||
308 | *pos = first; | ||
309 | *size = len; | ||
310 | } | ||
311 | |||
312 | static efi_status_t | 289 | static efi_status_t |
313 | __setup_efi_pci32(efi_pci_io_protocol_32 *pci, struct pci_setup_rom **__rom) | 290 | __setup_efi_pci32(efi_pci_io_protocol_32 *pci, struct pci_setup_rom **__rom) |
314 | { | 291 | { |