audk/MdeModulePkg/Bus/Pci
Dandan Bi a53a888de8 MdeModulePkg/NonDiscoverablePciDevice: Remove the redundant check
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1422

if (Attributes) {
  if ((Attributes & (~(DEV_SUPPORTED_ATTRIBUTES))) != 0) {
    return EFI_UNSUPPORTED;
  }
}
In above code block,
"If ((Attributes & (~(DEV_SUPPORTED_ATTRIBUTES))) != 0)" is TRUE,
the Attributes must be not 0. So we can remove the redundant
check "if (Attributes)".

Cc: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2019-01-08 09:59:30 +08:00
..
EhciDxe Revert "EhciDxe: Use common buffer for AsyncInterruptTransfer" 2018-11-07 22:48:01 +08:00
EhciPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
IdeBusPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
IncompatiblePciDeviceSupportDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
NonDiscoverablePciDeviceDxe MdeModulePkg/NonDiscoverablePciDevice: Remove the redundant check 2019-01-08 09:59:30 +08:00
NvmExpressDxe MdeModulePkg/NvmExpressDxe: Refine PassThru IO queue creation behavior 2018-10-25 12:41:37 +08:00
NvmExpressPei MdeModulePkg/NvmExpressPei: Refine data buffer & len check in PassThru 2018-11-13 20:54:44 +08:00
PciBusDxe MdeModulePkg/PciBus: Fix system hang when no PCI Option ROM exists 2018-12-17 09:38:02 +08:00
PciHostBridgeDxe MdeModulePkg/PciHostBridge: Move declaration of mIoMmu to header file 2018-09-26 12:12:53 +08:00
PciSioSerialDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
SataControllerDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
SdMmcPciHcDxe MdeModulePkg/SdMmcPciHcDxe: Fix VS2015 IA32 NOOPT build failure 2019-01-05 09:46:31 +08:00
SdMmcPciHcPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
UfsPciHcDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
UfsPciHcPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
UhciDxe MdeModulePkg/Usb: Make sure data from HW is no more than expected 2018-10-17 11:03:58 +08:00
UhciPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
XhciDxe Revert "XhciDxe: Use common buffer for AsyncInterruptTransfer" 2018-11-07 22:48:07 +08:00
XhciPei MdeModulePkg Xhci: Handle value 5 in Port Speed field of PORTSC 2018-10-23 11:17:32 +08:00