From 1e44cb991fbf128856e08518bed71aa7f02af241 Mon Sep 17 00:00:00 2001 From: gdong1 Date: Thu, 5 Jan 2012 08:11:49 +0000 Subject: 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 --- .../UsbCredentialProviderDxe/UsbCredentialProvider.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'SecurityPkg') diff --git a/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c b/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c index 327a2b0388..f851bb2e2d 100644 --- a/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c +++ b/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c @@ -1,7 +1,7 @@ /** @file Usb Credential Provider driver implemenetation. -Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
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; -- cgit v1.2.3