diff --git a/OvmfPkg/Library/NvVarsFileLib/FsAccess.c b/OvmfPkg/Library/NvVarsFileLib/FsAccess.c index 826901fc6b..cd0bfff2c4 100644 --- a/OvmfPkg/Library/NvVarsFileLib/FsAccess.c +++ b/OvmfPkg/Library/NvVarsFileLib/FsAccess.c @@ -77,9 +77,6 @@ GetNvVarsFile ( ), 0 ); - if (EFI_ERROR (Status)) { - return Status; - } return Status; } diff --git a/OvmfPkg/XenBusDxe/XenStore.c b/OvmfPkg/XenBusDxe/XenStore.c index 1666c4b8f9..76b6e297ef 100644 --- a/OvmfPkg/XenBusDxe/XenStore.c +++ b/OvmfPkg/XenBusDxe/XenStore.c @@ -1075,9 +1075,6 @@ XenStoreInit ( /* Initialize the shared memory rings to talk to xenstored */ Status = XenStoreInitComms (&xs); - if (EFI_ERROR (Status)) { - return Status; - } return Status; }