From nobody Sat Dec 28 10:18:05 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1498725153331650.5229134735104; Thu, 29 Jun 2017 01:32:33 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id B460B21B02B9B; Thu, 29 Jun 2017 01:30:54 -0700 (PDT) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1556421B02B8E for ; Thu, 29 Jun 2017 01:30:53 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP; 29 Jun 2017 01:32:25 -0700 Received: from ray-dev.ccr.corp.intel.com ([10.239.9.28]) by FMSMGA003.fm.intel.com with ESMTP; 29 Jun 2017 01:32:24 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,279,1496127600"; d="scan'208";a="872956487" From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Thu, 29 Jun 2017 16:32:20 +0800 Message-Id: <20170629083221.485184-3-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 In-Reply-To: <20170629083221.485184-1-ruiyu.ni@intel.com> References: <20170629083221.485184-1-ruiyu.ni@intel.com> Subject: [edk2] [PATCH 2/3] MdeModulePkg/ResetSystem: Remove unnecessary global variable X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Star Zeng Reviewed-by: Star Zeng --- MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c b/M= deModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c index f61e65e151..64f2da5ce9 100644 --- a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c +++ b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c @@ -1,7 +1,7 @@ /** @file Reset Architectural Protocol implementation =20 - Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
=20 This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License @@ -15,11 +15,6 @@ =20 #include "ResetSystem.h" =20 -// -// The handle onto which the Reset Architectural Protocol is installed -// -EFI_HANDLE mResetHandle =3D NULL; - /** The driver's entry point. =20 @@ -40,6 +35,7 @@ InitializeResetSystem ( ) { EFI_STATUS Status; + EFI_HANDLE Handle; =20 // // Make sure the Reset Architectural Protocol is not already installed i= n the system @@ -54,8 +50,9 @@ InitializeResetSystem ( // // Now install the Reset RT AP on a new handle // + Handle =3D NULL; Status =3D gBS->InstallMultipleProtocolInterfaces ( - &mResetHandle, + &Handle, &gEfiResetArchProtocolGuid, NULL, NULL --=20 2.12.2.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel