mirror of https://github.com/acidanthera/audk.git
Remove illegal TPL usage.
Signed-off-by: gdong1 Reviewed-by: niruiyu Reviewed-by: tye1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12908 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1e21413c8c
commit
1e44cb991f
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
Usb Credential Provider driver implemenetation.
|
||||
|
||||
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -894,7 +894,6 @@ CredentialUser (
|
|||
UINT8 *UserToken;
|
||||
UINT8 ReadToken[HASHED_CREDENTIAL_LEN];
|
||||
EFI_INPUT_KEY Key;
|
||||
EFI_TPL OldTpl;
|
||||
CHAR16 *QuestionStr;
|
||||
CHAR16 *PromptStr;
|
||||
|
||||
|
@ -943,8 +942,6 @@ CredentialUser (
|
|||
if (EFI_ERROR (Status)) {
|
||||
QuestionStr = GetStringById (STRING_TOKEN (STR_READ_USB_TOKEN_ERROR));
|
||||
PromptStr = GetStringById (STRING_TOKEN (STR_INSERT_USB_TOKEN));
|
||||
OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||
gBS->RestoreTPL (TPL_APPLICATION);
|
||||
CreatePopUp (
|
||||
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
||||
&Key,
|
||||
|
@ -953,7 +950,6 @@ CredentialUser (
|
|||
PromptStr,
|
||||
NULL
|
||||
);
|
||||
gBS->RaiseTPL (OldTpl);
|
||||
FreePool (QuestionStr);
|
||||
FreePool (PromptStr);
|
||||
return EFI_NOT_FOUND;
|
||||
|
|
Loading…
Reference in New Issue