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/ArpDxe/ArpDriver.c | |
parent | 2f88bd3a1296c522317f1c21377876de63de5be7 (diff) | |
download | edk2-d1050b9dff1cace252aff86630bfdb59dff5f507.zip edk2-d1050b9dff1cace252aff86630bfdb59dff5f507.tar.gz edk2-d1050b9dff1cace252aff86630bfdb59dff5f507.tar.bz2 |
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/ArpDxe/ArpDriver.c')
-rw-r--r-- | NetworkPkg/ArpDxe/ArpDriver.c | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/NetworkPkg/ArpDxe/ArpDriver.c b/NetworkPkg/ArpDxe/ArpDriver.c index eeef7f6..c80da6d 100644 --- a/NetworkPkg/ArpDxe/ArpDriver.c +++ b/NetworkPkg/ArpDxe/ArpDriver.c @@ -9,7 +9,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include "ArpDriver.h"
#include "ArpImpl.h"
-EFI_DRIVER_BINDING_PROTOCOL gArpDriverBinding = {
+EFI_DRIVER_BINDING_PROTOCOL gArpDriverBinding = {
ArpDriverBindingSupported,
ArpDriverBindingStart,
ArpDriverBindingStop,
@@ -18,7 +18,6 @@ EFI_DRIVER_BINDING_PROTOCOL gArpDriverBinding = { NULL
};
-
/**
Create and initialize the arp service context data.
@@ -37,8 +36,8 @@ EFI_DRIVER_BINDING_PROTOCOL gArpDriverBinding = { **/
EFI_STATUS
ArpCreateService (
- IN EFI_HANDLE ImageHandle,
- IN EFI_HANDLE ControllerHandle,
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_HANDLE ControllerHandle,
IN OUT ARP_SERVICE_DATA *ArpService
)
{
@@ -176,7 +175,6 @@ ERROR_EXIT: return Status;
}
-
/**
Clean the arp service context data.
@@ -226,7 +224,7 @@ ArpCleanService ( //
// Destroy the mnp child.
//
- NetLibDestroyServiceChild(
+ NetLibDestroyServiceChild (
ArpService->ControllerHandle,
ArpService->ImageHandle,
&gEfiManagedNetworkServiceBindingProtocolGuid,
@@ -248,19 +246,19 @@ ArpCleanService ( EFI_STATUS
EFIAPI
ArpDestroyChildEntryInHandleBuffer (
- IN LIST_ENTRY *Entry,
- IN VOID *Context
+ IN LIST_ENTRY *Entry,
+ IN VOID *Context
)
{
ARP_INSTANCE_DATA *Instance;
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
- if (Entry == NULL || Context == NULL) {
+ if ((Entry == NULL) || (Context == NULL)) {
return EFI_INVALID_PARAMETER;
}
- Instance = NET_LIST_USER_STRUCT_S (Entry, ARP_INSTANCE_DATA, List, ARP_INSTANCE_DATA_SIGNATURE);
- ServiceBinding = (EFI_SERVICE_BINDING_PROTOCOL *) Context;
+ Instance = NET_LIST_USER_STRUCT_S (Entry, ARP_INSTANCE_DATA, List, ARP_INSTANCE_DATA_SIGNATURE);
+ ServiceBinding = (EFI_SERVICE_BINDING_PROTOCOL *)Context;
return ServiceBinding->DestroyChild (ServiceBinding, Instance->Handle);
}
@@ -334,7 +332,6 @@ ArpDriverBindingSupported ( return Status;
}
-
/**
Start this driver on ControllerHandle.
@@ -380,7 +377,7 @@ ArpDriverBindingStart ( //
// Allocate a zero pool for ArpService.
//
- ArpService = AllocateZeroPool (sizeof(ARP_SERVICE_DATA));
+ ArpService = AllocateZeroPool (sizeof (ARP_SERVICE_DATA));
if (ArpService == NULL) {
return EFI_OUT_OF_RESOURCES;
}
@@ -427,7 +424,6 @@ ERROR: return Status;
}
-
/**
Stop this driver on ControllerHandle.
@@ -502,7 +498,7 @@ ArpDriverBindingStop ( //
// NumberOfChildren is not zero, destroy all the ARP children instances.
//
- List = &ArpService->ChildrenList;
+ List = &ArpService->ChildrenList;
Status = NetDestroyLinkList (
List,
ArpDestroyChildEntryInHandleBuffer,
@@ -576,7 +572,7 @@ ArpServiceBindingCreateChild ( //
// Allocate memory for the instance context data.
//
- Instance = AllocateZeroPool (sizeof(ARP_INSTANCE_DATA));
+ Instance = AllocateZeroPool (sizeof (ARP_INSTANCE_DATA));
if (Instance == NULL) {
DEBUG ((DEBUG_ERROR, "ArpSBCreateChild: Failed to allocate memory for Instance.\n"));
@@ -615,7 +611,7 @@ ArpServiceBindingCreateChild ( Status = gBS->OpenProtocol (
ArpService->MnpChildHandle,
&gEfiManagedNetworkProtocolGuid,
- (VOID **) &Mnp,
+ (VOID **)&Mnp,
gArpDriverBinding.DriverBindingHandle,
Instance->Handle,
EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER
@@ -637,7 +633,6 @@ ArpServiceBindingCreateChild ( ERROR:
if (EFI_ERROR (Status)) {
-
gBS->CloseProtocol (
ArpService->MnpChildHandle,
&gEfiManagedNetworkProtocolGuid,
@@ -661,7 +656,6 @@ ERROR: return Status;
}
-
/**
Destroys a child handle with a protocol installed on it.
@@ -746,8 +740,11 @@ ArpServiceBindingDestroyChild ( NULL
);
if (EFI_ERROR (Status)) {
- DEBUG ((DEBUG_ERROR, "ArpSBDestroyChild: Failed to uninstall the arp protocol, %r.\n",
- Status));
+ DEBUG ((
+ DEBUG_ERROR,
+ "ArpSBDestroyChild: Failed to uninstall the arp protocol, %r.\n",
+ Status
+ ));
Instance->InDestroy = FALSE;
return Status;
|