summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-21 04:56:24 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-01-21 04:56:24 +0000
commit29dd3b04b09d6efb3c2c3e79e71a998d9b6c79b3 (patch)
tree417a3a70234ca58d360f576a7add7901d8f56d52 /MdeModulePkg
parent7efb1d899695611fbca65ca906dd7bfdd9f1161f (diff)
downloadedk2-29dd3b04b09d6efb3c2c3e79e71a998d9b6c79b3.zip
edk2-29dd3b04b09d6efb3c2c3e79e71a998d9b6c79b3.tar.gz
edk2-29dd3b04b09d6efb3c2c3e79e71a998d9b6c79b3.tar.bz2
Fix Klocwork warning. We should directly return EFI_INVALID_PARAMETER when BufferSize is NULL.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7323 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Core/Dxe/Hand/Locate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/Hand/Locate.c b/MdeModulePkg/Core/Dxe/Hand/Locate.c
index 2b961c1..8e60a05 100644
--- a/MdeModulePkg/Core/Dxe/Hand/Locate.c
+++ b/MdeModulePkg/Core/Dxe/Hand/Locate.c
@@ -129,7 +129,7 @@ CoreLocateHandle (
VOID *Interface;
if (BufferSize == NULL) {
- Status = EFI_INVALID_PARAMETER;
+ return EFI_INVALID_PARAMETER;
}
if ((*BufferSize > 0) && (Buffer == NULL)) {