]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Correct return status for the unsupported condition
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Feb 2008 04:41:53 +0000 (04:41 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Feb 2008 04:41:53 +0000 (04:41 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4679 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c
MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c

index 2814c9d774bdcff6339fc887761e9112fd72bbb8..383916e8587c0361a9e1180323419839d4d48318 100644 (file)
@@ -125,7 +125,7 @@ Returns:
   // Now Runtime mode doesn't support the non-reset capsule image.\r
   //\r
   if (EfiAtRuntime ()) {\r
-    return EFI_INVALID_PARAMETER;\r
+    return EFI_UNSUPPORTED;\r
   }\r
 \r
   //\r
index 2c5dd365db20961cc89cab300f0d38eb4388e660..5e4688929a6f0ae0151b968b4d21a60d0f52d269 100644 (file)
@@ -730,11 +730,6 @@ Returns:
     //   Make sure RT Attribute is set if we are in Runtime phase.\r
     //\r
     return EFI_INVALID_PARAMETER;\r
-  } else if (EfiAtRuntime () && Attributes && !(Attributes & EFI_VARIABLE_NON_VOLATILE)) {\r
-    //\r
-    // Cannot Query volatile variable in Runtime\r
-    //\r
-    return EFI_INVALID_PARAMETER;\r
   }\r
 \r
   AcquireLockOnlyAtBootTime(&Global->VariableServicesLock);\r