diff options
author | Matt Fleming <matt.fleming@linux.intel.com> | 2011-07-21 14:17:14 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@linux.intel.com> | 2011-07-28 12:22:32 +0100 |
commit | 4f07501aca91a2044f9f7835132a8f5dc23fa647 (patch) | |
tree | e9b9d142c918a81854e29b3892bd5670fbb40f46 | |
parent | fdb45bff02cfe4556b16f31f1295c46130158a4a (diff) | |
download | efilinux-4f07501aca91a2044f9f7835132a8f5dc23fa647.tar.gz |
efilinux.h: Delete unused function, num_pages()
This function isn't used, and gnu-efi already provides
EFI_SIZE_TO_PAGES() for converting from a size in bytes to pages.
Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
-rw-r--r-- | efilinux.h | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -184,17 +184,6 @@ exit(EFI_HANDLE image, EFI_STATUS status, UINTN size, CHAR16 *reason) #define PAGE_SIZE 4096 -/* - * Convert bytes into pages - */ -static inline UINTN num_pages(UINTN size) -{ - UINTN pages; - - pages = ((size + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)); - return (pages /= PAGE_SIZE); -} - static const CHAR16 *memory_types[] = { L"EfiReservedMemoryType", L"EfiLoaderCode", |