mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-20 04:04:27 +02:00
MdeModulePkg RamDiskDxe: Fix VS2010 build error
Potentially uninitialized local variables 'TableKey' and 'TableHeader' might be used in functions RamDiskPublishNfit() and RamDiskUnpublishNfit() in file RamDiskProtocol.c. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
This commit is contained in:
parent
265fff3948
commit
3ab7066e8d
@ -201,8 +201,10 @@ RamDiskPublishNfit (
|
|||||||
//
|
//
|
||||||
// Determine whether there is a NFIT already in the ACPI table.
|
// Determine whether there is a NFIT already in the ACPI table.
|
||||||
//
|
//
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
TableIndex = 0;
|
TableIndex = 0;
|
||||||
|
TableKey = 0;
|
||||||
|
TableHeader = NULL;
|
||||||
|
|
||||||
while (!EFI_ERROR (Status)) {
|
while (!EFI_ERROR (Status)) {
|
||||||
Status = mAcpiSdtProtocol->GetAcpiTable (
|
Status = mAcpiSdtProtocol->GetAcpiTable (
|
||||||
@ -386,8 +388,10 @@ RamDiskUnpublishNfit (
|
|||||||
//
|
//
|
||||||
// Find the NFIT in the ACPI table.
|
// Find the NFIT in the ACPI table.
|
||||||
//
|
//
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
TableIndex = 0;
|
TableIndex = 0;
|
||||||
|
TableKey = 0;
|
||||||
|
TableHeader = NULL;
|
||||||
|
|
||||||
while (!EFI_ERROR (Status)) {
|
while (!EFI_ERROR (Status)) {
|
||||||
Status = mAcpiSdtProtocol->GetAcpiTable (
|
Status = mAcpiSdtProtocol->GetAcpiTable (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user