audk/PcAtChipsetPkg/IsaAcpiDxe
Dandan Bi 2d3a626e3e PcAtChipsetPkg/IsaAcpiDxe: Fix VS2012 build failure
Done:
if (EFI_ERROR (Status)) {
  if (PciIo != NULL && Enabled) {
    PciIo->Attributes (
             PciIo,
             EfiPciIoAttributeOperationSet,
             OriginalAttributes,
             NULL
             );
  }
}
In above codes, VS2012/VS2010 will report that "OriginalAttributes"
will be used without initialization. But in fact, when the if expression
is true(if (PciIo != NULL && Enabled)), the "OriginalAttributes" must be
initialized. In order to fix this false positive issue, we initialize the
"OriginalAttributes" after declaration.

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>
2017-11-23 08:43:21 +08:00
..
ComponentName.c Fix the comments to follow UEFI Spec regarding how to check an EFI_HANDLE is valid/invalid. 2011-07-05 09:22:57 +00:00
IsaAcpi.c PcAtChipsetPkg: Fix typing errors 2017-01-20 08:50:09 +08:00
IsaAcpi.inf PcAtChipsetPkg: Refine the format of meta data files. 2015-01-20 07:31:57 +00:00
IsaAcpi.uni PcAtChipsetPkg: Convert all .uni files to utf-8 2015-12-15 04:57:25 +00:00
IsaAcpiExtra.uni PcAtChipsetPkg: Convert all .uni files to utf-8 2015-12-15 04:57:25 +00:00
PcatIsaAcpi.c PcAtChipsetPkg/IsaAcpiDxe: Fix VS2012 build failure 2017-11-23 08:43:21 +08:00
PcatIsaAcpi.h PcAtChipsetPkg/IsaAcpiDxe: Restore PCI attributes correctly 2017-11-08 11:42:45 +08:00