]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/ResetSystem: Remove unnecessary global variable
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 15 Jun 2017 07:34:11 +0000 (15:34 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 3 Jul 2017 07:40:57 +0000 (15:40 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c

index f61e65e151aba37738ed780db4bae9da2a46291b..64f2da5ce9def5ef4bc59141998490e03e2d54f2 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Reset Architectural Protocol implementation\r
 \r
-  Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
 \r
 #include "ResetSystem.h"\r
 \r
-//\r
-// The handle onto which the Reset Architectural Protocol is installed\r
-//\r
-EFI_HANDLE  mResetHandle = NULL;\r
-\r
 /**\r
   The driver's entry point.\r
 \r
@@ -40,6 +35,7 @@ InitializeResetSystem (
   )\r
 {\r
   EFI_STATUS  Status;\r
+  EFI_HANDLE  Handle;\r
 \r
   //\r
   // Make sure the Reset Architectural Protocol is not already installed in the system\r
@@ -54,8 +50,9 @@ InitializeResetSystem (
   //\r
   // Now install the Reset RT AP on a new handle\r
   //\r
+  Handle = NULL;\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
-                  &mResetHandle,\r
+                  &Handle,\r
                   &gEfiResetArchProtocolGuid,\r
                   NULL,\r
                   NULL\r