summaryrefslogtreecommitdiff
path: root/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
diff options
context:
space:
mode:
Diffstat (limited to 'SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c')
-rw-r--r--SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c b/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
index e06ce4a6a1..4a4fa6a56d 100644
--- a/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
+++ b/SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c
@@ -24,10 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
OPAL_DRIVER mOpalDriver;
-// flag to track hii installation
-BOOLEAN gHiiInstalled = FALSE;
-
-
#define MAX_PASSWORD_SIZE 32
#define MAX_PASSWORD_TRY_COUNT 5
@@ -732,6 +728,11 @@ EfiDriverEntryPoint(
&ReadyToBootEvent
);
+ //
+ // Install Hii packages.
+ //
+ HiiInstall();
+
return Status;
}
@@ -966,14 +967,6 @@ OpalEfiDriverBindingStart(
AddDeviceToTail(Dev);
//
- // Install Hii if it hasn't already been installed
- //
- if (!gHiiInstalled) {
- HiiInstall();
- gHiiInstalled = TRUE;
- }
-
- //
// check if device is locked and prompt for password
//
OpalDriverRequestPassword (Dev);