]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PciBusDxe: Fix VS2012 build failure
authorDandan Bi <dandan.bi@intel.com>
Wed, 7 Feb 2018 01:00:17 +0000 (09:00 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 8 Feb 2018 04:46:46 +0000 (12:46 +0800)
commita012bf6e3e08d1fc878ffb271932e3cbce4a71f6
tree34489c04d9f1ec52726085aa09b33d47523347f5
parent77204d608be05103a68b470fbbcdeccfc887911f
MdeModulePkg/PciBusDxe: Fix VS2012 build failure

Initialize local variable to suppress warning C4703:
potentially uninitialized local pointer variable.

Both reads (dereferences) of "PciRootBridgeIo" in
PciBusDriverBindingStart() are only reached if
"gFullEnumeration" is TRUE on entry *and* we successfully
open the EfiPciRootBridgeIoProtocol interface.

Cc: Star Zeng <star.zeng@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.c