]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/DpcDxe/Dpc.c
NetworkPkg: Apply uncrustify changes
[mirror_edk2.git] / NetworkPkg / DpcDxe / Dpc.c
index 7c85dd8757c329d6b9e1fbda4039206f3ee48a12..33eeccc7d243ce9e9b7df6789491590426742ba7 100644 (file)
@@ -22,7 +22,7 @@ EFI_HANDLE  mDpcHandle = NULL;
 //\r
 // The EFI_DPC_PROTOCOL instances that is installed onto mDpcHandle\r
 //\r
-EFI_DPC_PROTOCOL mDpc = {\r
+EFI_DPC_PROTOCOL  mDpc = {\r
   DpcQueueDpc,\r
   DpcDispatchDpc\r
 };\r
@@ -30,7 +30,7 @@ EFI_DPC_PROTOCOL mDpc = {
 //\r
 // Global variables used to measure the DPC Queue Depths\r
 //\r
-UINTN  mDpcQueueDepth = 0;\r
+UINTN  mDpcQueueDepth    = 0;\r
 UINTN  mMaxDpcQueueDepth = 0;\r
 \r
 //\r
@@ -39,14 +39,14 @@ UINTN  mMaxDpcQueueDepth = 0;
 // If the free list is empty and a DPC is queued, the free list is grown by allocating\r
 // an additional set of DPC entries.\r
 //\r
-LIST_ENTRY      mDpcEntryFreeList = INITIALIZE_LIST_HEAD_VARIABLE(mDpcEntryFreeList);\r
+LIST_ENTRY  mDpcEntryFreeList = INITIALIZE_LIST_HEAD_VARIABLE (mDpcEntryFreeList);\r
 \r
 //\r
 // An array of DPC queues.  A DPC queue is allocated for every level EFI_TPL value.\r
 // As DPCs are queued, they are added to the end of the linked list.\r
 // As DPCs are dispatched, they are removed from the beginning of the linked list.\r
 //\r
-LIST_ENTRY      mDpcQueue[TPL_HIGH_LEVEL + 1];\r
+LIST_ENTRY  mDpcQueue[TPL_HIGH_LEVEL + 1];\r
 \r
 /**\r
   Add a Deferred Procedure Call to the end of the DPC queue.\r
@@ -81,7 +81,7 @@ DpcQueueDpc (
   //\r
   // Make sure DpcTpl is valid\r
   //\r
-  if (DpcTpl < TPL_APPLICATION || DpcTpl > TPL_HIGH_LEVEL) {\r
+  if ((DpcTpl < TPL_APPLICATION) || (DpcTpl > TPL_HIGH_LEVEL)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
@@ -265,7 +265,7 @@ DpcDispatchDpc (
         //\r
         // Invoke the DPC passing in its context\r
         //\r
-        (DpcEntry->DpcProcedure) (DpcEntry->DpcContext);\r
+        (DpcEntry->DpcProcedure)(DpcEntry->DpcContext);\r
 \r
         //\r
         // At least one DPC has been invoked, so set the return status to EFI_SUCCESS\r