ShellPkg: Fixed variable set but never used

This warning/error raised by ARM toolchain prevents to build
the EFI Shell for ARM 32-bit with this toolchain.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16323 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Olivier Martin 2014-11-10 10:20:25 +00:00 committed by oliviermartin
parent ace354f10b
commit 931b2cff42
1 changed files with 1 additions and 2 deletions

View File

@ -898,7 +898,6 @@ AddNewGuidNameMapping(
IN CONST CHAR8 *Lang OPTIONAL IN CONST CHAR8 *Lang OPTIONAL
) )
{ {
CONST GUID_INFO_BLOCK *Temp;
EFI_STRING_ID NameID; EFI_STRING_ID NameID;
HandleParsingHiiInit(); HandleParsingHiiInit();
@ -907,7 +906,7 @@ AddNewGuidNameMapping(
return (EFI_INVALID_PARAMETER); return (EFI_INVALID_PARAMETER);
} }
if ((Temp = InternalShellGetNodeFromGuid(Guid)) != NULL) { if ((InternalShellGetNodeFromGuid(Guid)) != NULL) {
return (EFI_ACCESS_DENIED); return (EFI_ACCESS_DENIED);
} }