diff options
author | Dandan Bi <dandan.bi@intel.com> | 2017-11-22 09:54:10 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2017-11-23 08:43:21 +0800 |
commit | 2d3a626e3e9577348f9ef4cf6b3118d5e81063cf (patch) | |
tree | 1ea62caf00bea65a3115809315f6eb98e356d4ea /NetworkPkg/HttpDxe/HttpDriver.h | |
parent | 8284b1791ea99416db42075626d7098fa4f89598 (diff) | |
download | edk2-2d3a626e3e9577348f9ef4cf6b3118d5e81063cf.zip edk2-2d3a626e3e9577348f9ef4cf6b3118d5e81063cf.tar.gz edk2-2d3a626e3e9577348f9ef4cf6b3118d5e81063cf.tar.bz2 |
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>
Diffstat (limited to 'NetworkPkg/HttpDxe/HttpDriver.h')
0 files changed, 0 insertions, 0 deletions