diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-05 04:41:53 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-05 04:41:53 +0000 |
commit | 17b875379f446f204d7e5ac57d07c1b393196a42 (patch) | |
tree | f0d7ac2e517d4b8acb4e08155bd9cb5cfce50fd6 | |
parent | 39aea48d30311de191a1e6c2c66b2307c29f385f (diff) | |
download | edk2-platforms-17b875379f446f204d7e5ac57d07c1b393196a42.tar.xz |
Correct return status for the unsupported condition
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4679 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c b/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c index 2814c9d774..383916e858 100644 --- a/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c +++ b/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c @@ -125,7 +125,7 @@ Returns: // Now Runtime mode doesn't support the non-reset capsule image.
//
if (EfiAtRuntime ()) {
- return EFI_INVALID_PARAMETER;
+ return EFI_UNSUPPORTED;
}
//
diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c index 2c5dd365db..5e4688929a 100644 --- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c +++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c @@ -730,11 +730,6 @@ Returns: // Make sure RT Attribute is set if we are in Runtime phase.
//
return EFI_INVALID_PARAMETER;
- } else if (EfiAtRuntime () && Attributes && !(Attributes & EFI_VARIABLE_NON_VOLATILE)) {
- //
- // Cannot Query volatile variable in Runtime
- //
- return EFI_INVALID_PARAMETER;
}
AcquireLockOnlyAtBootTime(&Global->VariableServicesLock);
|