diff options
author | Michael Brown | 2015-09-11 00:22:43 +0200 |
---|---|---|
committer | Michael Brown | 2015-09-13 13:54:31 +0200 |
commit | 7107334391d05bd60a44daaee732c19860ca87bc (patch) | |
tree | 143821c45a4d75e3ca6808321200704abbabbbc2 /src/image | |
parent | [xhci] Support arbitrarily large transfers (diff) | |
download | ipxe-7107334391d05bd60a44daaee732c19860ca87bc.tar.gz ipxe-7107334391d05bd60a44daaee732c19860ca87bc.tar.xz ipxe-7107334391d05bd60a44daaee732c19860ca87bc.zip |
[efi] Provide efi_devpath_len()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
-rw-r--r-- | src/image/efi_image.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/image/efi_image.c b/src/image/efi_image.c index 89d57bbd..79dfe066 100644 --- a/src/image/efi_image.c +++ b/src/image/efi_image.c @@ -73,8 +73,7 @@ efi_image_path ( struct image *image, EFI_DEVICE_PATH_PROTOCOL *parent ) { size_t len; /* Calculate device path lengths */ - end = efi_devpath_end ( parent ); - prefix_len = ( ( void * ) end - ( void * ) parent ); + prefix_len = efi_devpath_len ( parent ); name_len = strlen ( image->name ); filepath_len = ( SIZE_OF_FILEPATH_DEVICE_PATH + ( name_len + 1 /* NUL */ ) * sizeof ( wchar_t ) ); |