diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-09-10 23:22:43 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-09-13 12:54:31 +0100 |
commit | 7107334391d05bd60a44daaee732c19860ca87bc (patch) | |
tree | 143821c45a4d75e3ca6808321200704abbabbbc2 /src/image | |
parent | 4a7d69169788a65d3d4bb4d3a00497bb1a45d51d (diff) | |
download | ipxe-7107334391d05bd60a44daaee732c19860ca87bc.tar.gz |
[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 89d57bbda..79dfe0664 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 ) ); |