]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c
ShellPkg: Clean up source files
[mirror_edk2.git] / ShellPkg / Library / UefiShellDriver1CommandsLib / Devices.c
index b725178ebd151cf4e43e589320a3a710c3b45acc..629167c24385ecad0bf0c53850bc7e6b6b9aadec 100644 (file)
@@ -2,7 +2,7 @@
   Main file for devices shell Driver1 function.\r
 \r
   (C) Copyright 2012-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 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 of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   Get lots of info about a device from its handle.\r
 \r
   @param[in] TheHandle       The device handle to get info on.\r
-  @param[in, out] Type       On successful return R, B, or D (root, bus, or \r
+  @param[in, out] Type       On successful return R, B, or D (root, bus, or\r
                              device) will be placed in this buffer.\r
-  @param[in, out] Cfg        On successful return this buffer will be \r
+  @param[in, out] Cfg        On successful return this buffer will be\r
                              TRUE if the handle has configuration, FALSE\r
                              otherwise.\r
-  @param[in, out] Diag       On successful return this buffer will be \r
+  @param[in, out] Diag       On successful return this buffer will be\r
                              TRUE if the handle has disgnostics, FALSE\r
                              otherwise.\r
-  @param[in, out] Parents    On successful return this buffer will be \r
+  @param[in, out] Parents    On successful return this buffer will be\r
                              contain the number of parent handles.\r
-  @param[in, out] Devices    On successful return this buffer will be \r
+  @param[in, out] Devices    On successful return this buffer will be\r
                              contain the number of devices controlled.\r
-  @param[in, out] Children   On successful return this buffer will be \r
+  @param[in, out] Children   On successful return this buffer will be\r
                              contain the number of child handles.\r
   @param[out] Name           The pointer to a buffer that will be allocated\r
                              and contain the string name of the handle.\r
@@ -58,7 +58,7 @@ GetDeviceHandleInfo (
   EFI_HANDLE    *HandleBuffer;\r
   UINTN         Count;\r
 \r
-  if (TheHandle == NULL \r
+  if (TheHandle == NULL\r
     || Type == NULL\r
     || Cfg == NULL\r
     || Diag == NULL\r
@@ -168,7 +168,7 @@ ShellCommandRunDevices (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"devices", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"devices", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -182,7 +182,7 @@ ShellCommandRunDevices (
       //\r
       // error for too many parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"devices");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"devices");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -198,7 +198,7 @@ ShellCommandRunDevices (
 //        AsciiSPrint(Language, 10, "en-us");\r
       } else {\r
         ASSERT(Language == NULL);\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"devices",  L"-l");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"devices",  L"-l");\r
         ShellCommandLineFreeVarList (Package);\r
         return (SHELL_INVALID_PARAMETER);\r
       }\r
@@ -253,13 +253,13 @@ ShellCommandRunDevices (
           ShellStatus = SHELL_ABORTED;\r
           break;\r
         }\r
-        \r
+\r
       }\r
 \r
       if (HandleList != NULL) {\r
         FreePool(HandleList);\r
       }\r
\r
+\r
     }\r
     SHELL_FREE_NON_NULL(Language);\r
     ShellCommandLineFreeVarList (Package);\r