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/Udp6Dxe/ComponentName.c | |
parent | 2f88bd3a1296c522317f1c21377876de63de5be7 (diff) | |
download | edk2-d1050b9dff1cace252aff86630bfdb59dff5f507.tar.gz edk2-d1050b9dff1cace252aff86630bfdb59dff5f507.tar.bz2 edk2-d1050b9dff1cace252aff86630bfdb59dff5f507.zip |
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/Udp6Dxe/ComponentName.c')
-rw-r--r-- | NetworkPkg/Udp6Dxe/ComponentName.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/NetworkPkg/Udp6Dxe/ComponentName.c b/NetworkPkg/Udp6Dxe/ComponentName.c index 49d8d53095..45fb6b4adb 100644 --- a/NetworkPkg/Udp6Dxe/ComponentName.c +++ b/NetworkPkg/Udp6Dxe/ComponentName.c @@ -12,6 +12,7 @@ //
// EFI Component Name Functions
//
+
/**
Retrieves a Unicode string that is the user-readable name of the driver.
@@ -59,7 +60,6 @@ Udp6ComponentNameGetDriverName ( OUT CHAR16 **DriverName
);
-
/**
Retrieves a Unicode string that is the user-readable name of the controller
that is being managed by a driver.
@@ -150,14 +150,13 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gUdp6ComponentName = //
// EFI Component Name 2 Protocol
//
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gUdp6ComponentName2 = {
- (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) Udp6ComponentNameGetDriverName,
- (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) Udp6ComponentNameGetControllerName,
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gUdp6ComponentName2 = {
+ (EFI_COMPONENT_NAME2_GET_DRIVER_NAME)Udp6ComponentNameGetDriverName,
+ (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME)Udp6ComponentNameGetControllerName,
"en"
};
-
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mUdp6DriverNameTable[] = {
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mUdp6DriverNameTable[] = {
{
"eng;en",
L"UDP6 Network Service Driver"
@@ -222,7 +221,7 @@ Udp6ComponentNameGetDriverName ( This->SupportedLanguages,
mUdp6DriverNameTable,
DriverName,
- (BOOLEAN) (This == &gUdp6ComponentName)
+ (BOOLEAN)(This == &gUdp6ComponentName)
);
}
@@ -238,12 +237,12 @@ Udp6ComponentNameGetDriverName ( **/
EFI_STATUS
UpdateName (
- IN EFI_UDP6_PROTOCOL *Udp6
+ IN EFI_UDP6_PROTOCOL *Udp6
)
{
- EFI_STATUS Status;
- CHAR16 HandleName[64];
- EFI_UDP6_CONFIG_DATA Udp6ConfigData;
+ EFI_STATUS Status;
+ CHAR16 HandleName[64];
+ EFI_UDP6_CONFIG_DATA Udp6ConfigData;
if (Udp6 == NULL) {
return EFI_INVALID_PARAMETER;
@@ -254,7 +253,9 @@ UpdateName ( //
Status = Udp6->GetModeData (Udp6, &Udp6ConfigData, NULL, NULL, NULL);
if (!EFI_ERROR (Status)) {
- UnicodeSPrint (HandleName, sizeof (HandleName),
+ UnicodeSPrint (
+ HandleName,
+ sizeof (HandleName),
L"UDPv6 (SrcPort=%d, DestPort=%d)",
Udp6ConfigData.StationPort,
Udp6ConfigData.RemotePort
@@ -368,8 +369,8 @@ Udp6ComponentNameGetControllerName ( OUT CHAR16 **ControllerName
)
{
- EFI_STATUS Status;
- EFI_UDP6_PROTOCOL *Udp6;
+ EFI_STATUS Status;
+ EFI_UDP6_PROTOCOL *Udp6;
//
// Only provide names for child handles.
|