]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Dhcp6Dxe/ComponentName.c
NetworkPkg: Apply uncrustify changes
[mirror_edk2.git] / NetworkPkg / Dhcp6Dxe / ComponentName.c
index c5927fbd12f53e2cfef8f24d11fe57f9dd8b6a54..6877e7c00a08520f7297728babea9048ca904bc9 100644 (file)
@@ -9,7 +9,6 @@
 \r
 #include "Dhcp6Impl.h"\r
 \r
-\r
 /**\r
   Retrieves a Unicode string that is the user-readable name of the driver.\r
 \r
@@ -57,7 +56,6 @@ Dhcp6ComponentNameGetDriverName (
   OUT CHAR16                       **DriverName\r
   );\r
 \r
-\r
 /**\r
   Retrieves a Unicode string that is the user-readable name of the controller\r
   that is being managed by a driver.\r
@@ -129,18 +127,17 @@ Dhcp6ComponentNameGetDriverName (
 EFI_STATUS\r
 EFIAPI\r
 Dhcp6ComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  EFI_HANDLE                   ControllerHandle,\r
+  IN  EFI_HANDLE                   ChildHandle        OPTIONAL,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **ControllerName\r
   );\r
 \r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL    gDhcp6ComponentName = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL  gDhcp6ComponentName = {\r
   Dhcp6ComponentNameGetDriverName,\r
   Dhcp6ComponentNameGetControllerName,\r
   "eng"\r
@@ -149,13 +146,13 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL    gDhcp6ComponentName
 //\r
 // EFI Component Name 2 Protocol\r
 //\r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL   gDhcp6ComponentName2 = {\r
-  (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) Dhcp6ComponentNameGetDriverName,\r
-  (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) Dhcp6ComponentNameGetControllerName,\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL  gDhcp6ComponentName2 = {\r
+  (EFI_COMPONENT_NAME2_GET_DRIVER_NAME)Dhcp6ComponentNameGetDriverName,\r
+  (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME)Dhcp6ComponentNameGetControllerName,\r
   "en"\r
 };\r
 \r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE       mDhcp6DriverNameTable[] = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE  mDhcp6DriverNameTable[] = {\r
   {\r
     "eng;en",\r
     L"DHCP6 Protocol Driver"\r
@@ -166,9 +163,9 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE       mDhcp6DriverNameTab
   }\r
 };\r
 \r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE   *gDhcp6ControllerNameTable = NULL;\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE  *gDhcp6ControllerNameTable = NULL;\r
 \r
-CHAR16 *mDhcp6ControllerName[] = {\r
+CHAR16  *mDhcp6ControllerName[] = {\r
   L"DHCPv6 (State=0, Init)",\r
   L"DHCPv6 (State=1, Selecting)",\r
   L"DHCPv6 (State=2, Requesting)",\r
@@ -248,12 +245,12 @@ Dhcp6ComponentNameGetDriverName (
 **/\r
 EFI_STATUS\r
 UpdateName (\r
-  IN   EFI_DHCP6_PROTOCOL             *Dhcp6\r
+  IN   EFI_DHCP6_PROTOCOL  *Dhcp6\r
   )\r
 {\r
-  EFI_STATUS                       Status;\r
-  EFI_DHCP6_MODE_DATA              Dhcp6ModeData;\r
-  CHAR16                           *HandleName;\r
+  EFI_STATUS           Status;\r
+  EFI_DHCP6_MODE_DATA  Dhcp6ModeData;\r
+  CHAR16               *HandleName;\r
 \r
   if (Dhcp6 == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
@@ -278,12 +275,14 @@ UpdateName (
     if (Dhcp6ModeData.Ia->State > Dhcp6Rebinding) {\r
       return EFI_DEVICE_ERROR;\r
     }\r
+\r
     HandleName = mDhcp6ControllerName[Dhcp6ModeData.Ia->State];\r
   }\r
 \r
   if (Dhcp6ModeData.Ia != NULL) {\r
     FreePool (Dhcp6ModeData.Ia);\r
   }\r
+\r
   if (Dhcp6ModeData.ClientId != NULL) {\r
     FreePool (Dhcp6ModeData.ClientId);\r
   }\r
@@ -379,15 +378,15 @@ UpdateName (
 EFI_STATUS\r
 EFIAPI\r
 Dhcp6ComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  EFI_HANDLE                   ControllerHandle,\r
+  IN  EFI_HANDLE                   ChildHandle        OPTIONAL,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **ControllerName\r
   )\r
 {\r
-  EFI_STATUS                    Status;\r
-  EFI_DHCP6_PROTOCOL            *Dhcp6;\r
+  EFI_STATUS          Status;\r
+  EFI_DHCP6_PROTOCOL  *Dhcp6;\r
 \r
   //\r
   // Only provide names for child handles.\r
@@ -439,4 +438,3 @@ Dhcp6ComponentNameGetControllerName (
            (BOOLEAN)(This == &gDhcp6ComponentName)\r
            );\r
 }\r
-\r