]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/MnpDxe/ComponentName.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / Network / MnpDxe / ComponentName.c
index b6f96087ede91dc2b3603d5e0b35774aebd8f5f1..e92be98d9bb4e5aefaeec95692bb038de48be6a3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   UEFI Component Name(2) protocol implementation for MnpDxe driver.\r
 \r
-Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
 of the BSD License which accompanies this distribution.  The full\r
@@ -107,10 +107,10 @@ MnpComponentNameGetDriverName (
 \r
   @param  Mnp[in]                 A pointer to the EFI_MANAGED_NETWORK_PROTOCOL.\r
 \r
-  \r
+\r
   @retval EFI_SUCCESS             Update the ControllerNameTable of this instance successfully.\r
   @retval EFI_INVALID_PARAMETER   The input parameter is invalid.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 UpdateName (\r
@@ -157,7 +157,7 @@ UpdateName (
     //\r
     // Remove the last '-'\r
     //\r
-    OffSet--;  \r
+    OffSet--;\r
     //\r
     // Print the ProtocolType and VLAN ID for this instance.\r
     //\r
@@ -177,12 +177,12 @@ UpdateName (
   } else {\r
     return Status;\r
   }\r
-  \r
+\r
   if (gMnpControllerNameTable != NULL) {\r
     FreeUnicodeStringTable (gMnpControllerNameTable);\r
     gMnpControllerNameTable = NULL;\r
   }\r
-  \r
+\r
   Status = AddUnicodeString2 (\r
              "eng",\r
              gMnpComponentName.SupportedLanguages,\r
@@ -193,7 +193,7 @@ UpdateName (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   return AddUnicodeString2 (\r
            "en",\r
            gMnpComponentName2.SupportedLanguages,\r
@@ -290,22 +290,22 @@ MnpComponentNameGetControllerName (
   if (ChildHandle == NULL) {\r
     return EFI_UNSUPPORTED;\r
   }\r
\r
-  // \r
-  // Make sure this driver is currently managing ControllerHandle  \r
-  // \r
+\r
+  //\r
+  // Make sure this driver is currently managing ControllerHandle\r
+  //\r
   Status = EfiTestManagedDevice (\r
              ControllerHandle,\r
              gMnpDriverBinding.DriverBindingHandle,\r
              &gEfiSimpleNetworkProtocolGuid\r
              );\r
-  if (EFI_ERROR (Status)) { \r
+  if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
-  // \r
-  // Make sure this driver produced ChildHandle \r
-  // \r
+\r
+  //\r
+  // Make sure this driver produced ChildHandle\r
+  //\r
   Status = EfiTestChildHandle (\r
              ControllerHandle,\r
              ChildHandle,\r
@@ -315,9 +315,9 @@ MnpComponentNameGetControllerName (
     return Status;\r
   }\r
 \r
-  // \r
-  // Retrieve an instance of a produced protocol from ChildHandle  \r
-  // \r
+  //\r
+  // Retrieve an instance of a produced protocol from ChildHandle\r
+  //\r
   Status = gBS->OpenProtocol (\r
                   ChildHandle,\r
                   &gEfiManagedNetworkProtocolGuid,\r