]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpBootDxe/HttpBootComponentName.c
NetworkPkg: Apply uncrustify changes
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootComponentName.c
index dbaa944adc7a72bc6bf6bd7cb834e5608e0a1e04..bc1993df431b67c1a26b7b79a1338ca83274d472 100644 (file)
@@ -13,7 +13,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 ///\r
 GLOBAL_REMOVE_IF_UNREFERENCED\r
 EFI_COMPONENT_NAME_PROTOCOL  gHttpBootDxeComponentName = {\r
-  (EFI_COMPONENT_NAME_GET_DRIVER_NAME)    HttpBootDxeComponentNameGetDriverName,\r
+  (EFI_COMPONENT_NAME_GET_DRIVER_NAME)HttpBootDxeComponentNameGetDriverName,\r
   (EFI_COMPONENT_NAME_GET_CONTROLLER_NAME)HttpBootDxeComponentNameGetControllerName,\r
   "eng"\r
 };\r
@@ -32,18 +32,18 @@ EFI_COMPONENT_NAME2_PROTOCOL  gHttpBootDxeComponentName2 = {
 /// Table of driver names\r
 ///\r
 GLOBAL_REMOVE_IF_UNREFERENCED\r
-EFI_UNICODE_STRING_TABLE mHttpBootDxeDriverNameTable[] = {\r
+EFI_UNICODE_STRING_TABLE  mHttpBootDxeDriverNameTable[] = {\r
   { "eng;en", (CHAR16 *)L"UEFI HTTP Boot Driver" },\r
-  { NULL, NULL }\r
+  { NULL,     NULL                               }\r
 };\r
 \r
 ///\r
 /// Table of controller names\r
 ///\r
 GLOBAL_REMOVE_IF_UNREFERENCED\r
-EFI_UNICODE_STRING_TABLE mHttpBootDxeControllerNameTable[] = {\r
+EFI_UNICODE_STRING_TABLE  mHttpBootDxeControllerNameTable[] = {\r
   { "eng;en", (CHAR16 *)L"UEFI Http Boot Controller" },\r
-  { NULL, NULL }\r
+  { NULL,     NULL                                   }\r
 };\r
 \r
 /**\r
@@ -81,7 +81,7 @@ HttpBootDxeComponentNameGetDriverName (
            This->SupportedLanguages,\r
            mHttpBootDxeDriverNameTable,\r
            DriverName,\r
-           (BOOLEAN) (This != &gHttpBootDxeComponentName2)\r
+           (BOOLEAN)(This != &gHttpBootDxeComponentName2)\r
            );\r
 }\r
 \r
@@ -135,17 +135,17 @@ HttpBootDxeComponentNameGetControllerName (
   OUT CHAR16                        **ControllerName\r
   )\r
 {\r
-  EFI_STATUS                      Status;\r
-  EFI_HANDLE                      NicHandle;\r
-  UINT32                          *Id;\r
+  EFI_STATUS  Status;\r
+  EFI_HANDLE  NicHandle;\r
+  UINT32      *Id;\r
 \r
-  if (ControllerHandle == NULL || ChildHandle != NULL) {\r
+  if ((ControllerHandle == NULL) || (ChildHandle != NULL)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r
   NicHandle = HttpBootGetNicByIp4Children (ControllerHandle);\r
   if (NicHandle == NULL) {\r
-    NicHandle = HttpBootGetNicByIp6Children(ControllerHandle);\r
+    NicHandle = HttpBootGetNicByIp6Children (ControllerHandle);\r
     if (NicHandle == NULL) {\r
       return EFI_UNSUPPORTED;\r
     }\r
@@ -157,7 +157,7 @@ HttpBootDxeComponentNameGetControllerName (
   Status = gBS->OpenProtocol (\r
                   NicHandle,\r
                   &gEfiCallerIdGuid,\r
-                  (VOID **) &Id,\r
+                  (VOID **)&Id,\r
                   NULL,\r
                   NULL,\r
                   EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
@@ -173,5 +173,4 @@ HttpBootDxeComponentNameGetControllerName (
            ControllerName,\r
            (BOOLEAN)(This != &gHttpBootDxeComponentName2)\r
            );\r
-\r
 }\r