]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: AcpiTableDxe: fix VS2008 build by merging adjacent if blocks
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 25 Feb 2016 16:20:21 +0000 (17:20 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 26 Feb 2016 13:02:36 +0000 (14:02 +0100)
commit3a61de23b3b3390235bf8f95cde117a8f7dd5f62
treece5efb75345adbb38fd5ccfeb551612d9824a374
parent6474f1f156eefa6886e594039f4d562e374ba344
MdeModulePkg: AcpiTableDxe: fix VS2008 build by merging adjacent if blocks

The assignment of CurrentRsdtEntry and its subsequent dereference are
subject to the same condition, but for some reason, VS2008 does not see
that and warns about the dereference possibly involving an uninitialized
pointer. Since the single statememt between the blocks is unrelated, we
can just move it and merge the two conditional blocks together.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: David Woodhouse <David.Woodhouse@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c