From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 9C29521E0B9F2 for ; Tue, 6 Feb 2018 19:23:33 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2018 19:29:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,471,1511856000"; d="scan'208";a="29468436" Received: from ray-dev.ccr.corp.intel.com (HELO [10.239.9.19]) ([10.239.9.19]) by orsmga001.jf.intel.com with ESMTP; 06 Feb 2018 19:29:10 -0800 To: Dandan Bi , edk2-devel@lists.01.org Cc: Star Zeng References: <1517967056-18112-1-git-send-email-dandan.bi@intel.com> From: "Ni, Ruiyu" Message-ID: Date: Wed, 7 Feb 2018 11:29:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1517967056-18112-1-git-send-email-dandan.bi@intel.com> Subject: Re: [patch] MdeModulePkg/PciBusDxe: Fix VS2012 build failure X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2018 03:23:35 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 2/7/2018 9:30 AM, Dandan Bi wrote: > Initialize local variable to suppress warning C4703: > potentially uninitialized local pointer variable. > > Cc: Star Zeng > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Dandan Bi > --- > MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.c > index c48e3bb..13221b9 100644 > --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.c > +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.c > @@ -242,10 +242,12 @@ PciBusDriverBindingStart ( > { > EFI_STATUS Status; > EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath; > EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo; > > + PciRootBridgeIo = NULL; > + > // > // Check RemainingDevicePath validation > // > if (RemainingDevicePath != NULL) { > // > Reviewed-by: Ruiyu Ni Thank you very much!! -- Thanks, Ray