X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FIScsiDxe%2FComponentName.c;h=cb91af3fc310fa718be0880b302a1084236b6c48;hp=46d89d855ca38bb5b53017a2e682bf3fa78d10d2;hb=f75a7f568e6d0944327970b3f3f2dafd9bba76b1;hpb=9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107 diff --git a/NetworkPkg/IScsiDxe/ComponentName.c b/NetworkPkg/IScsiDxe/ComponentName.c index 46d89d855c..cb91af3fc3 100644 --- a/NetworkPkg/IScsiDxe/ComponentName.c +++ b/NetworkPkg/IScsiDxe/ComponentName.c @@ -1,7 +1,7 @@ /** @file UEFI Component Name(2) protocol implementation for iSCSI. -Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -106,11 +106,11 @@ IScsiComponentNameGetDriverName ( @param[in] IScsiExtScsiPassThru A pointer to the EFI_EXT_SCSI_PASS_THRU_PROTOCOL instance. @param[in] Ipv6Flag TRUE if IP6 network stack is used. - + @retval EFI_SUCCESS Update the ControllerNameTable of this instance successfully. @retval EFI_INVALID_PARAMETER The input parameter is invalid. @retval EFI_UNSUPPORTED Can't get the corresponding NIC info from the Controller handle. - + **/ EFI_STATUS UpdateName ( @@ -126,10 +126,10 @@ UpdateName ( if (IScsiExtScsiPassThru == NULL) { return EFI_INVALID_PARAMETER; } - + Private = ISCSI_DRIVER_DATA_FROM_EXT_SCSI_PASS_THRU (IScsiExtScsiPassThru); NicIndex = Private->Session->ConfigData->NicIndex; - + UnicodeSPrint ( HandleName, sizeof (HandleName), @@ -242,14 +242,14 @@ IScsiComponentNameGetControllerName ( ) { EFI_STATUS Status; - + EFI_HANDLE IScsiController; BOOLEAN Ipv6Flag; EFI_GUID *IScsiPrivateGuid; ISCSI_PRIVATE_PROTOCOL *IScsiIdentifier; - + EFI_EXT_SCSI_PASS_THRU_PROTOCOL *IScsiExtScsiPassThru; - + if (ControllerHandle == NULL) { return EFI_UNSUPPORTED; } @@ -309,7 +309,7 @@ IScsiComponentNameGetControllerName ( return Status; } } - + // // Retrieve an instance of a produced protocol from ChildHandle // @@ -324,7 +324,7 @@ IScsiComponentNameGetControllerName ( if (EFI_ERROR (Status)) { return Status; } - + // // Update the component name for this child handle. //