From 7107334391d05bd60a44daaee732c19860ca87bc Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 10 Sep 2015 23:22:43 +0100 Subject: [efi] Provide efi_devpath_len() Signed-off-by: Michael Brown --- src/interface/efi/efi_snp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/interface/efi/efi_snp.c') diff --git a/src/interface/efi/efi_snp.c b/src/interface/efi/efi_snp.c index 2ff1e9749..5729a39c1 100644 --- a/src/interface/efi/efi_snp.c +++ b/src/interface/efi/efi_snp.c @@ -1033,8 +1033,7 @@ static int efi_snp_probe ( struct net_device *netdev ) { } /* Allocate the new device path */ - path_end = efi_devpath_end ( path.path ); - path_prefix_len = ( ( ( void * ) path_end ) - ( ( void * ) path.path )); + path_prefix_len = efi_devpath_len ( path.path ); snpdev->path = zalloc ( path_prefix_len + sizeof ( *macpath ) + sizeof ( *path_end ) ); if ( ! snpdev->path ) { -- cgit v1.2.3-55-g7522