diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2021-12-05 14:54:07 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | d1050b9dff1cace252aff86630bfdb59dff5f507 (patch) | |
tree | 77f796143980742d97a883f62ce339a270474801 /NetworkPkg/DpcDxe | |
parent | 2f88bd3a1296c522317f1c21377876de63de5be7 (diff) | |
download | edk2-d1050b9dff1cace252aff86630bfdb59dff5f507.tar.gz |
NetworkPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the NetworkPkg package
Cc: Andrew Fish <afish@apple.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Diffstat (limited to 'NetworkPkg/DpcDxe')
-rw-r--r-- | NetworkPkg/DpcDxe/Dpc.c | 12 | ||||
-rw-r--r-- | NetworkPkg/DpcDxe/Dpc.h | 7 |
2 files changed, 9 insertions, 10 deletions
diff --git a/NetworkPkg/DpcDxe/Dpc.c b/NetworkPkg/DpcDxe/Dpc.c index 7c85dd8757..33eeccc7d2 100644 --- a/NetworkPkg/DpcDxe/Dpc.c +++ b/NetworkPkg/DpcDxe/Dpc.c @@ -22,7 +22,7 @@ EFI_HANDLE mDpcHandle = NULL; //
// The EFI_DPC_PROTOCOL instances that is installed onto mDpcHandle
//
-EFI_DPC_PROTOCOL mDpc = {
+EFI_DPC_PROTOCOL mDpc = {
DpcQueueDpc,
DpcDispatchDpc
};
@@ -30,7 +30,7 @@ EFI_DPC_PROTOCOL mDpc = { //
// Global variables used to measure the DPC Queue Depths
//
-UINTN mDpcQueueDepth = 0;
+UINTN mDpcQueueDepth = 0;
UINTN mMaxDpcQueueDepth = 0;
//
@@ -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
// an additional set of DPC entries.
//
-LIST_ENTRY mDpcEntryFreeList = INITIALIZE_LIST_HEAD_VARIABLE(mDpcEntryFreeList);
+LIST_ENTRY mDpcEntryFreeList = INITIALIZE_LIST_HEAD_VARIABLE (mDpcEntryFreeList);
//
// An array of DPC queues. A DPC queue is allocated for every level EFI_TPL value.
// As DPCs are queued, they are added to the end of the linked list.
// As DPCs are dispatched, they are removed from the beginning of the linked list.
//
-LIST_ENTRY mDpcQueue[TPL_HIGH_LEVEL + 1];
+LIST_ENTRY mDpcQueue[TPL_HIGH_LEVEL + 1];
/**
Add a Deferred Procedure Call to the end of the DPC queue.
@@ -81,7 +81,7 @@ DpcQueueDpc ( //
// Make sure DpcTpl is valid
//
- if (DpcTpl < TPL_APPLICATION || DpcTpl > TPL_HIGH_LEVEL) {
+ if ((DpcTpl < TPL_APPLICATION) || (DpcTpl > TPL_HIGH_LEVEL)) {
return EFI_INVALID_PARAMETER;
}
@@ -265,7 +265,7 @@ DpcDispatchDpc ( //
// Invoke the DPC passing in its context
//
- (DpcEntry->DpcProcedure) (DpcEntry->DpcContext);
+ (DpcEntry->DpcProcedure)(DpcEntry->DpcContext);
//
// At least one DPC has been invoked, so set the return status to EFI_SUCCESS
diff --git a/NetworkPkg/DpcDxe/Dpc.h b/NetworkPkg/DpcDxe/Dpc.h index a5e6f7b62f..e94858e698 100644 --- a/NetworkPkg/DpcDxe/Dpc.h +++ b/NetworkPkg/DpcDxe/Dpc.h @@ -28,9 +28,9 @@ Abstract: // list or on a DPC queue at a specific EFI_TPL.
//
typedef struct {
- LIST_ENTRY ListEntry;
- EFI_DPC_PROCEDURE DpcProcedure;
- VOID *DpcContext;
+ LIST_ENTRY ListEntry;
+ EFI_DPC_PROCEDURE DpcProcedure;
+ VOID *DpcContext;
} DPC_ENTRY;
/**
@@ -77,4 +77,3 @@ DpcDispatchDpc ( );
#endif
-
|