]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Dispatcher/Dependency.c
Code Scrub for Dxe Core.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Dispatcher / Dependency.c
index a77dc31073e52e5f4e8cd23a842d04027c2a4cd1..f4a448680f6d84c32e17fe046c1e253b30b82cea 100644 (file)
@@ -33,7 +33,7 @@ BOOLEAN *mDepexEvaluationStackPointer = NULL;
 /**\r
   Grow size of the Depex stack\r
 \r
-  @retval EFI_SUCCESS           Stack successfully growed. \r
+  @retval EFI_SUCCESS           Stack successfully growed.\r
   @retval EFI_OUT_OF_RESOURCES  There is not enough system memory to grow the stack.\r
 \r
 **/\r
@@ -60,8 +60,8 @@ GrowDepexStack (
     // Copy to Old Stack to the New Stack\r
     //\r
     CopyMem (\r
-      NewStack, \r
-      mDepexEvaluationStack, \r
+      NewStack,\r
+      mDepexEvaluationStack,\r
       (mDepexEvaluationStackEnd - mDepexEvaluationStack) * sizeof (BOOLEAN)\r
       );\r
 \r
@@ -86,9 +86,9 @@ GrowDepexStack (
 /**\r
   Push an element onto the Boolean Stack.\r
 \r
-  @param  Value                 BOOLEAN to push. \r
+  @param  Value                 BOOLEAN to push.\r
 \r
-  @retval EFI_SUCCESS           The value was pushed onto the stack. \r
+  @retval EFI_SUCCESS           The value was pushed onto the stack.\r
   @retval EFI_OUT_OF_RESOURCES  There is not enough system memory to grow the stack.\r
 \r
 **/\r
@@ -126,13 +126,13 @@ PushBool (
 /**\r
   Pop an element from the Boolean stack.\r
 \r
-  @param  Value                 BOOLEAN to pop. \r
+  @param  Value                 BOOLEAN to pop.\r
 \r
-  @retval EFI_SUCCESS           The value was popped onto the stack. \r
+  @retval EFI_SUCCESS           The value was popped onto the stack.\r
   @retval EFI_ACCESS_DENIED     The pop operation underflowed the stack.\r
 \r
 **/\r
-EFI_STATUS \r
+EFI_STATUS\r
 PopBool (\r
   OUT BOOLEAN  *Value\r
   )\r
@@ -149,7 +149,7 @@ PopBool (
   //\r
   mDepexEvaluationStackPointer--;\r
   *Value = *mDepexEvaluationStackPointer;\r
-  return EFI_SUCCESS;  \r
+  return EFI_SUCCESS;\r
 }\r
 \r
 \r
@@ -168,23 +168,23 @@ PopBool (
 **/\r
 EFI_STATUS\r
 CorePreProcessDepex (\r
-  IN  EFI_CORE_DRIVER_ENTRY   *DriverEntry  \r
+  IN  EFI_CORE_DRIVER_ENTRY   *DriverEntry\r
   )\r
 {\r
   UINT8  *Iterator;\r
-    \r
+\r
   Iterator = DriverEntry->Depex;\r
   if (*Iterator == EFI_DEP_SOR) {\r
     DriverEntry->Unrequested = TRUE;\r
   } else {\r
     DriverEntry->Dependent = TRUE;\r
   }\r
-    \r
+\r
   if (*Iterator == EFI_DEP_BEFORE) {\r
     DriverEntry->Before = TRUE;\r
   } else if (*Iterator == EFI_DEP_AFTER) {\r
     DriverEntry->After = TRUE;\r
-  } \r
+  }\r
 \r
   if (DriverEntry->Before || DriverEntry->After) {\r
     CopyMem (&DriverEntry->BeforeAfterGuid, Iterator + 1, sizeof (EFI_GUID));\r
@@ -201,16 +201,16 @@ CorePreProcessDepex (
   routine in this case. The SOR is just ignored and is a nop in the grammer.\r
   POSTFIX means all the math is done on top of the stack.\r
 \r
-  @param  DriverEntry           DriverEntry element to update. \r
+  @param  DriverEntry           DriverEntry element to update.\r
 \r
-  @retval TRUE                  If driver is ready to run. \r
-  @retval FALSE                 If driver is not ready to run or some fatal error \r
+  @retval TRUE                  If driver is ready to run.\r
+  @retval FALSE                 If driver is not ready to run or some fatal error\r
                                 was found.\r
 \r
 **/\r
 BOOLEAN\r
 CoreIsSchedulable (\r
-  IN  EFI_CORE_DRIVER_ENTRY   *DriverEntry  \r
+  IN  EFI_CORE_DRIVER_ENTRY   *DriverEntry\r
   )\r
 {\r
   EFI_STATUS  Status;\r
@@ -247,7 +247,7 @@ CoreIsSchedulable (
 \r
 \r
   Iterator = DriverEntry->Depex;\r
-  \r
+\r
   while (TRUE) {\r
     //\r
     // Check to see if we are attempting to fetch dependency expression instructions\r
@@ -272,7 +272,7 @@ CoreIsSchedulable (
       ASSERT (FALSE);\r
     case EFI_DEP_SOR:\r
       //\r
-      // These opcodes can only appear once as the first opcode.  If it is found \r
+      // These opcodes can only appear once as the first opcode.  If it is found\r
       // at any other location, then the dependency expression evaluates to FALSE\r
       //\r
       if (Iterator != DriverEntry->Depex) {\r
@@ -283,7 +283,7 @@ CoreIsSchedulable (
       //\r
       break;\r
 \r
-    case EFI_DEP_PUSH:  \r
+    case EFI_DEP_PUSH:\r
       //\r
       // Push operator is followed by a GUID. Test to see if the GUID protocol\r
       // is installed and push the boolean result on the stack.\r
@@ -305,7 +305,7 @@ CoreIsSchedulable (
       Iterator += sizeof (EFI_GUID);\r
       break;\r
 \r
-    case EFI_DEP_AND:    \r
+    case EFI_DEP_AND:\r
       Status = PopBool (&Operator);\r
       if (EFI_ERROR (Status)) {\r
         return FALSE;\r
@@ -322,7 +322,7 @@ CoreIsSchedulable (
       }\r
       break;\r
 \r
-    case EFI_DEP_OR:     \r
+    case EFI_DEP_OR:\r
       Status = PopBool (&Operator);\r
       if (EFI_ERROR (Status)) {\r
         return FALSE;\r
@@ -339,7 +339,7 @@ CoreIsSchedulable (
       }\r
       break;\r
 \r
-    case EFI_DEP_NOT:    \r
+    case EFI_DEP_NOT:\r
       Status = PopBool (&Operator);\r
       if (EFI_ERROR (Status)) {\r
         return FALSE;\r
@@ -351,21 +351,21 @@ CoreIsSchedulable (
       }\r
       break;\r
 \r
-    case EFI_DEP_TRUE:   \r
+    case EFI_DEP_TRUE:\r
       Status = PushBool (TRUE);\r
       if (EFI_ERROR (Status)) {\r
         return FALSE;\r
       }\r
       break;\r
 \r
-    case EFI_DEP_FALSE: \r
+    case EFI_DEP_FALSE:\r
       Status = PushBool (FALSE);\r
       if (EFI_ERROR (Status)) {\r
         return FALSE;\r
       }\r
       break;\r
 \r
-    case EFI_DEP_END:    \r
+    case EFI_DEP_END:\r
       Status = PopBool (&Operator);\r
       if (EFI_ERROR (Status)) {\r
         return FALSE;\r
@@ -381,10 +381,10 @@ CoreIsSchedulable (
       Iterator += sizeof (EFI_GUID);\r
       break;\r
 \r
-    default:      \r
+    default:\r
       goto Done;\r
     }\r
-    \r
+\r
     //\r
     // Skip over the Dependency Op Code we just processed in the switch.\r
     // The math is done out of order, but it should not matter. That is\r