From 29dd3b04b09d6efb3c2c3e79e71a998d9b6c79b3 Mon Sep 17 00:00:00 2001 From: eric_tian Date: Wed, 21 Jan 2009 04:56:24 +0000 Subject: 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 --- MdeModulePkg/Core/Dxe/Hand/Locate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Core/Dxe/Hand/Locate.c b/MdeModulePkg/Core/Dxe/Hand/Locate.c index 2b961c14d4..8e60a0567a 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)) { -- cgit v1.2.3