audk/MdeModulePkg/Bus
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
..
Ata MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
I2c/I2cDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
Isa MdeModulePkg: Avoid key notification called more than once 2018-09-14 10:18:31 +08:00
Pci MdeModulePkg/NonDiscoverablePciDevice: Remove the redundant check 2019-01-08 09:59:30 +08:00
Scsi MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
Sd MdeModulePkg/SdDxe: Fix potential NULL pointer access 2018-11-19 09:09:05 +08:00
Ufs MdeModulePkg/Bus/Ufs: Ensure device not return more data than expected 2018-10-17 11:04:05 +08:00
Usb MdeModulePkg: Remove the trailing space in three source files. 2018-11-02 22:15:52 +08:00