X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FMnpDxe%2FComponentName.c;h=fe85c3bc239b1d075a90b945470f97b9cefcb613;hp=b6f96087ede91dc2b3603d5e0b35774aebd8f5f1;hb=c0fd7f734e2d33e22215899b40a47b843129541d;hpb=44833d441beec53e8eaf5acb7d26c018f704247b
diff --git a/MdeModulePkg/Universal/Network/MnpDxe/ComponentName.c b/MdeModulePkg/Universal/Network/MnpDxe/ComponentName.c
index b6f96087ed..fe85c3bc23 100644
--- a/MdeModulePkg/Universal/Network/MnpDxe/ComponentName.c
+++ b/MdeModulePkg/Universal/Network/MnpDxe/ComponentName.c
@@ -1,15 +1,8 @@
/** @file
UEFI Component Name(2) protocol implementation for MnpDxe driver.
-Copyright (c) 2005 - 2014, 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
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -107,10 +100,10 @@ MnpComponentNameGetDriverName (
@param Mnp[in] A pointer to the EFI_MANAGED_NETWORK_PROTOCOL.
-
+
@retval EFI_SUCCESS Update the ControllerNameTable of this instance successfully.
@retval EFI_INVALID_PARAMETER The input parameter is invalid.
-
+
**/
EFI_STATUS
UpdateName (
@@ -157,7 +150,7 @@ UpdateName (
//
// Remove the last '-'
//
- OffSet--;
+ OffSet--;
//
// Print the ProtocolType and VLAN ID for this instance.
//
@@ -177,12 +170,12 @@ UpdateName (
} else {
return Status;
}
-
+
if (gMnpControllerNameTable != NULL) {
FreeUnicodeStringTable (gMnpControllerNameTable);
gMnpControllerNameTable = NULL;
}
-
+
Status = AddUnicodeString2 (
"eng",
gMnpComponentName.SupportedLanguages,
@@ -193,7 +186,7 @@ UpdateName (
if (EFI_ERROR (Status)) {
return Status;
}
-
+
return AddUnicodeString2 (
"en",
gMnpComponentName2.SupportedLanguages,
@@ -290,22 +283,22 @@ MnpComponentNameGetControllerName (
if (ChildHandle == NULL) {
return EFI_UNSUPPORTED;
}
-
- //
- // Make sure this driver is currently managing ControllerHandle
- //
+
+ //
+ // Make sure this driver is currently managing ControllerHandle
+ //
Status = EfiTestManagedDevice (
ControllerHandle,
gMnpDriverBinding.DriverBindingHandle,
&gEfiSimpleNetworkProtocolGuid
);
- if (EFI_ERROR (Status)) {
+ if (EFI_ERROR (Status)) {
return Status;
}
-
- //
- // Make sure this driver produced ChildHandle
- //
+
+ //
+ // Make sure this driver produced ChildHandle
+ //
Status = EfiTestChildHandle (
ControllerHandle,
ChildHandle,
@@ -315,9 +308,9 @@ MnpComponentNameGetControllerName (
return Status;
}
- //
- // Retrieve an instance of a produced protocol from ChildHandle
- //
+ //
+ // Retrieve an instance of a produced protocol from ChildHandle
+ //
Status = gBS->OpenProtocol (
ChildHandle,
&gEfiManagedNetworkProtocolGuid,