]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c
MdeModulePkg/PciBus: Remove unnecessary PCIE detection
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 25 May 2018 09:47:43 +0000 (17:47 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 28 May 2018 08:33:54 +0000 (16:33 +0800)
commit2b5f0daa6c5f1d205b82c52c9ce55307a1787a3e
tree0e25a92f4cfb71ac2df2cc94743c82d8fd829f4c
parent60cb4d1b04b6334cf9d56eb95d135546053db1fd
MdeModulePkg/PciBus: Remove unnecessary PCIE detection

CreatePciIoDevice() detects whether the PCI device is a PCI Express
device and remembers the device type in PciIoDevice->IsPciExp.

RegisterPciDevice() detects the device type again which is
unnecessary. The detection logic can be removed.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c