mirror_edk2/MdeModulePkg
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
..
Application MdeModulePkg CapsuleApp:Remove two redundant Guids 2018-09-21 11:34:42 +08:00
Bus MdeModulePkg/NonDiscoverablePciDevice: Remove the redundant check 2019-01-08 09:59:30 +08:00
Core MdeModulePkg/Dxe/Page: take MAX_ALLOC_ADDRESS into account 2018-12-20 11:01:58 +01:00
Include MdeModulePkg/SdMmcPciHcDxe: Allow overriding base clock frequency 2018-11-20 13:46:57 +08:00
Library MdeModulePkg/FileExplorerLib: avoid packed struct for program data 2018-12-11 13:14:28 +01:00
Logo MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
Universal MdeModulePkg/Variable: Update to consume SpeculationBarrier 2018-12-25 09:16:11 +08:00
MdeModulePkg.dec MdeModulePkg: Remove PcdPeiCoreMaxXXX PCDs 2019-01-02 09:18:36 +08:00
MdeModulePkg.dsc MdeModulePkg: Delete UefiPxeBcDxe in MdeModulePkg. 2018-12-24 15:10:05 +08:00
MdeModulePkg.uni MdeModulePkg: Remove PcdPeiCoreMaxXXX PCDs 2019-01-02 09:18:36 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00