mirror of https://github.com/ipxe/ipxe.git
[efi] Remove spurious close of SNP device parent's device path
Commit e727f57
("[efi] Include a copy of the device path within struct
efi_device") neglected to delete the closure of the parent's device
path from the success code path in efi_snp_probe().
Reduce confusion by removing this (harmless) additional close.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/34/merge
parent
8249bbc098
commit
331bbf5075
|
@ -1958,10 +1958,6 @@ static int efi_snp_probe ( struct net_device *netdev, void *priv __unused ) {
|
|||
/* Add to list of SNP devices */
|
||||
list_add ( &snpdev->list, &efi_snp_devices );
|
||||
|
||||
/* Close device path */
|
||||
bs->CloseProtocol ( efidev->device, &efi_device_path_protocol_guid,
|
||||
efi_image_handle, efidev->device );
|
||||
|
||||
DBGC ( snpdev, "SNPDEV %p installed for %s as device %s\n",
|
||||
snpdev, netdev->name, efi_handle_name ( snpdev->handle ) );
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue