From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 D288621945DF3 for ; Thu, 29 Jun 2017 07:10:53 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jun 2017 07:11:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,281,1496127600"; d="scan'208";a="102758488" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga004.jf.intel.com with ESMTP; 29 Jun 2017 07:11:12 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Jun 2017 07:11:11 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Jun 2017 07:11:11 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.146]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.122]) with mapi id 14.03.0319.002; Thu, 29 Jun 2017 22:11:09 +0800 From: "Zeng, Star" To: "Ni, Ruiyu" , "edk2-devel@lists.01.org" CC: "Zeng, Star" Thread-Topic: [edk2] [PATCH 2/3] MdeModulePkg/ResetSystem: Remove unnecessary global variable Thread-Index: AQHS8LJFhYsnUc3y00mcu4XX8XMH6qI74Z0g Date: Thu, 29 Jun 2017 14:11:09 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B8EFFC7@shsmsx102.ccr.corp.intel.com> References: <20170629083221.485184-1-ruiyu.ni@intel.com> <20170629083221.485184-3-ruiyu.ni@intel.com> In-Reply-To: <20170629083221.485184-3-ruiyu.ni@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [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: , X-List-Received-Date: Thu, 29 Jun 2017 14:10:54 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Star Zeng -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ruiy= u Ni Sent: Thursday, June 29, 2017 4:32 PM To: edk2-devel@lists.01.org Cc: Zeng, Star Subject: [edk2] [PATCH 2/3] MdeModulePkg/ResetSystem: Remove unnecessary gl= obal variable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: 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=20 + 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 -- 2.12.2.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel