]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove illegal TPL usage.
authorgdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 5 Jan 2012 08:11:49 +0000 (08:11 +0000)
committergdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 5 Jan 2012 08:11:49 +0000 (08:11 +0000)
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

SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c

index 327a2b03884b88bbbc46297f5787d7585ab3b8a8..f851bb2e2d444811d995bafd26711b12360b2618 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Usb Credential Provider driver implemenetation.\r
     \r
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials \r
 are licensed and made available under the terms and conditions of the BSD License \r
 which accompanies this distribution.  The full text of the license may be found at \r
@@ -894,7 +894,6 @@ CredentialUser (
   UINT8         *UserToken; \r
   UINT8         ReadToken[HASHED_CREDENTIAL_LEN];\r
   EFI_INPUT_KEY Key;\r
-  EFI_TPL       OldTpl;\r
   CHAR16        *QuestionStr;\r
   CHAR16        *PromptStr;\r
   \r
@@ -943,8 +942,6 @@ CredentialUser (
   if (EFI_ERROR (Status)) {\r
     QuestionStr = GetStringById (STRING_TOKEN (STR_READ_USB_TOKEN_ERROR));\r
     PromptStr   = GetStringById (STRING_TOKEN (STR_INSERT_USB_TOKEN));\r
-    OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
-    gBS->RestoreTPL (TPL_APPLICATION);\r
     CreatePopUp (\r
       EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,\r
       &Key,\r
@@ -953,7 +950,6 @@ CredentialUser (
       PromptStr,\r
       NULL\r
       );\r
-    gBS->RaiseTPL (OldTpl);\r
     FreePool (QuestionStr);\r
     FreePool (PromptStr);\r
     return EFI_NOT_FOUND;\r