OvmfPkg/IoMmuDxe: don't initialize local variables

The edk2 coding style requires separate assignments.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
This commit is contained in:
Laszlo Ersek 2017-08-02 12:03:27 +02:00
parent 60aa3a0e73
commit 5e365a97ec
1 changed files with 6 additions and 2 deletions

View File

@ -33,8 +33,10 @@ IoMmuDxeEntryPoint (
IN EFI_SYSTEM_TABLE *SystemTable
)
{
EFI_STATUS Status = EFI_SUCCESS;
EFI_HANDLE Handle = NULL;
EFI_STATUS Status;
EFI_HANDLE Handle;
Status = EFI_SUCCESS;
//
// When SEV is enabled, install IoMmu protocol otherwise install the
@ -43,6 +45,8 @@ IoMmuDxeEntryPoint (
if (MemEncryptSevIsEnabled ()) {
AmdSevInstallIoMmuProtocol ();
} else {
Handle = NULL;
Status = gBS->InstallMultipleProtocolInterfaces (
&Handle,
&gIoMmuAbsentProtocolGuid,