summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/VirtioNetDxe/SnpStop.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/VirtioNetDxe/SnpStop.c')
-rw-r--r--OvmfPkg/VirtioNetDxe/SnpStop.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/OvmfPkg/VirtioNetDxe/SnpStop.c b/OvmfPkg/VirtioNetDxe/SnpStop.c
index 3dc7bec8fd..b1ca3c86af 100644
--- a/OvmfPkg/VirtioNetDxe/SnpStop.c
+++ b/OvmfPkg/VirtioNetDxe/SnpStop.c
@@ -29,29 +29,27 @@
interface.
**/
-
EFI_STATUS
EFIAPI
VirtioNetStop (
- IN EFI_SIMPLE_NETWORK_PROTOCOL *This
+ IN EFI_SIMPLE_NETWORK_PROTOCOL *This
)
{
- 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);
if (Dev->Snm.State != EfiSimpleNetworkStarted) {
Status = EFI_NOT_STARTED;
- }
- else {
+ } else {
Dev->Snm.State = EfiSimpleNetworkStopped;
- Status = EFI_SUCCESS;
+ Status = EFI_SUCCESS;
}
gBS->RestoreTPL (OldTpl);