summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg
diff options
context:
space:
mode:
authorjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>2011-01-05 13:43:00 +0000
committerjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>2011-01-05 13:43:00 +0000
commitb16ad4b87b8bdc0d6f0ce03271980ff607780829 (patch)
tree9a98e73b786bb52e3aca81c4c6afd17d6de45ae9 /EdkCompatibilityPkg
parent2244198233db695f8f29bb34c7d6cfe5e995f42c (diff)
downloadedk2-platforms-b16ad4b87b8bdc0d6f0ce03271980ff607780829.tar.xz
Correct return value check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11227 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r--EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c b/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
index 530f76591a..9a4119b318 100644
--- a/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
+++ b/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
@@ -889,7 +889,7 @@ InitializeScriptSaveOnS3SaveState (
// Allocate BootScriptThunkData
//
BootScriptThunkData = AllocatePool (sizeof (BOOT_SCRIPT_THUNK_DATA));
- if (EFI_ERROR (Status)) {
+ if (BootScriptThunkData == NULL) {
return EFI_OUT_OF_RESOURCES;
}