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:
committed by
mergify[bot]
parent
d1050b9dff
commit
ac0a286f4d
@@ -45,37 +45,36 @@
|
||||
interface.
|
||||
|
||||
**/
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
VirtioNetReceiveFilters (
|
||||
IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
|
||||
IN UINT32 Enable,
|
||||
IN UINT32 Disable,
|
||||
IN BOOLEAN ResetMCastFilter,
|
||||
IN UINTN MCastFilterCnt OPTIONAL,
|
||||
IN EFI_MAC_ADDRESS *MCastFilter OPTIONAL
|
||||
IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
|
||||
IN UINT32 Enable,
|
||||
IN UINT32 Disable,
|
||||
IN BOOLEAN ResetMCastFilter,
|
||||
IN UINTN MCastFilterCnt OPTIONAL,
|
||||
IN EFI_MAC_ADDRESS *MCastFilter OPTIONAL
|
||||
)
|
||||
{
|
||||
VNET_DEV *Dev;
|
||||
EFI_TPL OldTpl;
|
||||
EFI_STATUS Status;
|
||||
VNET_DEV *Dev;
|
||||
EFI_TPL OldTpl;
|
||||
EFI_STATUS Status;
|
||||
|
||||
if (This == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
Dev = VIRTIO_NET_FROM_SNP (This);
|
||||
Dev = VIRTIO_NET_FROM_SNP (This);
|
||||
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||
switch (Dev->Snm.State) {
|
||||
case EfiSimpleNetworkStopped:
|
||||
Status = EFI_NOT_STARTED;
|
||||
goto Exit;
|
||||
case EfiSimpleNetworkStarted:
|
||||
Status = EFI_DEVICE_ERROR;
|
||||
goto Exit;
|
||||
default:
|
||||
break;
|
||||
case EfiSimpleNetworkStopped:
|
||||
Status = EFI_NOT_STARTED;
|
||||
goto Exit;
|
||||
case EfiSimpleNetworkStarted:
|
||||
Status = EFI_DEVICE_ERROR;
|
||||
goto Exit;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -89,9 +88,9 @@ VirtioNetReceiveFilters (
|
||||
// discarding any packets getting through the filter.
|
||||
//
|
||||
Status = (
|
||||
((Enable | Disable) & ~Dev->Snm.ReceiveFilterMask) != 0 ||
|
||||
(!ResetMCastFilter && MCastFilterCnt > Dev->Snm.MaxMCastFilterCount)
|
||||
) ? EFI_INVALID_PARAMETER : EFI_SUCCESS;
|
||||
((Enable | Disable) & ~Dev->Snm.ReceiveFilterMask) != 0 ||
|
||||
(!ResetMCastFilter && MCastFilterCnt > Dev->Snm.MaxMCastFilterCount)
|
||||
) ? EFI_INVALID_PARAMETER : EFI_SUCCESS;
|
||||
|
||||
Exit:
|
||||
gBS->RestoreTPL (OldTpl);
|
||||
|
Reference in New Issue
Block a user