OvmfPkg: Apply uncrustify changes

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the OvmfPkg 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: Andrew Fish <afish@apple.com>
This commit is contained in:
Michael Kubacki
2021-12-05 14:54:09 -08:00
committed by mergify[bot]
parent d1050b9dff
commit ac0a286f4d
445 changed files with 30894 additions and 26369 deletions

View File

@@ -14,13 +14,13 @@
#include "VirtioNet.h"
STATIC
EFI_UNICODE_STRING_TABLE mVirtioNetDriverNameTable[] = {
EFI_UNICODE_STRING_TABLE mVirtioNetDriverNameTable[] = {
{ "eng;en", L"Virtio Network Driver" },
{ NULL, NULL }
};
STATIC
EFI_UNICODE_STRING_TABLE mVirtioNetControllerNameTable[] = {
EFI_UNICODE_STRING_TABLE mVirtioNetControllerNameTable[] = {
{ "eng;en", L"Virtio Network Device" },
{ NULL, NULL }
};
@@ -48,14 +48,13 @@ EFI_UNICODE_STRING_TABLE mVirtioNetControllerNameTable[] = {
the language specified by Language.
**/
STATIC
EFI_STATUS
EFIAPI
VirtioNetGetDriverName (
IN EFI_COMPONENT_NAME_PROTOCOL *This,
IN CHAR8 *Language,
OUT CHAR16 **DriverName
IN EFI_COMPONENT_NAME_PROTOCOL *This,
IN CHAR8 *Language,
OUT CHAR16 **DriverName
)
{
return (Language == NULL || DriverName == NULL) ?
@@ -65,11 +64,10 @@ VirtioNetGetDriverName (
This->SupportedLanguages,
mVirtioNetDriverNameTable,
DriverName,
(BOOLEAN) (This == &gVirtioNetComponentName) // Iso639Language
(BOOLEAN)(This == &gVirtioNetComponentName) // Iso639Language
);
}
/**
Retrieves a Unicode string that is the user readable name of the controller
that is being managed by an EFI Driver.
@@ -114,21 +112,20 @@ VirtioNetGetDriverName (
the language specified by Language.
**/
STATIC
EFI_STATUS
EFIAPI
VirtioNetGetControllerName (
IN EFI_COMPONENT_NAME_PROTOCOL *This,
IN EFI_HANDLE ControllerHandle,
IN EFI_HANDLE ChildHandle,
IN CHAR8 *Language,
OUT CHAR16 **ControllerName
IN EFI_COMPONENT_NAME_PROTOCOL *This,
IN EFI_HANDLE ControllerHandle,
IN EFI_HANDLE ChildHandle,
IN CHAR8 *Language,
OUT CHAR16 **ControllerName
)
{
EFI_STATUS Status;
EFI_STATUS Status;
if (ControllerHandle == NULL || Language == NULL || ControllerName == NULL) {
if ((ControllerHandle == NULL) || (Language == NULL) || (ControllerName == NULL)) {
return EFI_INVALID_PARAMETER;
}
@@ -154,18 +151,18 @@ VirtioNetGetControllerName (
This->SupportedLanguages,
mVirtioNetControllerNameTable,
ControllerName,
(BOOLEAN) (This == &gVirtioNetComponentName) // Iso639Language
(BOOLEAN)(This == &gVirtioNetComponentName) // Iso639Language
);
}
EFI_COMPONENT_NAME_PROTOCOL gVirtioNetComponentName = {
EFI_COMPONENT_NAME_PROTOCOL gVirtioNetComponentName = {
&VirtioNetGetDriverName,
&VirtioNetGetControllerName,
"eng" // SupportedLanguages, ISO 639-2 language codes
};
EFI_COMPONENT_NAME2_PROTOCOL gVirtioNetComponentName2 = {
(EFI_COMPONENT_NAME2_GET_DRIVER_NAME) &VirtioNetGetDriverName,
(EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) &VirtioNetGetControllerName,
EFI_COMPONENT_NAME2_PROTOCOL gVirtioNetComponentName2 = {
(EFI_COMPONENT_NAME2_GET_DRIVER_NAME)&VirtioNetGetDriverName,
(EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME)&VirtioNetGetControllerName,
"en" // SupportedLanguages, RFC 4646 language codes
};