]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Dhcp4Dxe/ComponentName.c
NetworkPkg: Apply uncrustify changes
[mirror_edk2.git] / NetworkPkg / Dhcp4Dxe / ComponentName.c
index 7c404fa2675624a017921454fc6f2fa8e4acfcb2..cb4156364e7dff569b4c92566a1fff4d9060e4a8 100644 (file)
@@ -5,12 +5,12 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 \r
 **/\r
 \r
-\r
 #include "Dhcp4Impl.h"\r
 \r
 //\r
 // EFI Component Name Functions\r
 //\r
+\r
 /**\r
   Retrieves a Unicode string that is the user readable name of the driver.\r
 \r
@@ -58,7 +58,6 @@ DhcpComponentNameGetDriverName (
   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
@@ -130,14 +129,13 @@ DhcpComponentNameGetDriverName (
 EFI_STATUS\r
 EFIAPI\r
 DhcpComponentNameGetControllerName (\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
@@ -150,14 +148,13 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL  gDhcp4ComponentName =
 //\r
 // EFI Component Name 2 Protocol\r
 //\r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gDhcp4ComponentName2 = {\r
-  (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) DhcpComponentNameGetDriverName,\r
-  (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) DhcpComponentNameGetControllerName,\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL  gDhcp4ComponentName2 = {\r
+  (EFI_COMPONENT_NAME2_GET_DRIVER_NAME)DhcpComponentNameGetDriverName,\r
+  (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME)DhcpComponentNameGetControllerName,\r
   "en"\r
 };\r
 \r
-\r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mDhcpDriverNameTable[] = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE  mDhcpDriverNameTable[] = {\r
   {\r
     "eng;en",\r
     L"DHCP Protocol Driver"\r
@@ -168,9 +165,9 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mDhcpDriverNameTable[] =
   }\r
 };\r
 \r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE    *gDhcpControllerNameTable = NULL;\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE  *gDhcpControllerNameTable = NULL;\r
 \r
-CHAR16 *mDhcp4ControllerName[] = {\r
+CHAR16  *mDhcp4ControllerName[] = {\r
   L"DHCPv4 (State=0, Stopped)",\r
   L"DHCPv4 (State=1, Init)",\r
   L"DHCPv4 (State=2, Selecting)",\r
@@ -251,11 +248,11 @@ DhcpComponentNameGetDriverName (
 **/\r
 EFI_STATUS\r
 UpdateName (\r
-  IN     EFI_DHCP4_PROTOCOL             *Dhcp4\r
+  IN     EFI_DHCP4_PROTOCOL  *Dhcp4\r
   )\r
 {\r
-  EFI_STATUS                       Status;\r
-  EFI_DHCP4_MODE_DATA              Dhcp4ModeData;\r
+  EFI_STATUS           Status;\r
+  EFI_DHCP4_MODE_DATA  Dhcp4ModeData;\r
 \r
   if (Dhcp4 == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
@@ -369,15 +366,15 @@ UpdateName (
 EFI_STATUS\r
 EFIAPI\r
 DhcpComponentNameGetControllerName (\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_DHCP4_PROTOCOL            *Dhcp4;\r
+  EFI_STATUS          Status;\r
+  EFI_DHCP4_PROTOCOL  *Dhcp4;\r
 \r
   //\r
   // Only provide names for child handles.\r