mirror of https://github.com/acidanthera/audk.git
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:
parent
60aa3a0e73
commit
5e365a97ec
|
@ -33,8 +33,10 @@ IoMmuDxeEntryPoint (
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status = EFI_SUCCESS;
|
EFI_STATUS Status;
|
||||||
EFI_HANDLE Handle = NULL;
|
EFI_HANDLE Handle;
|
||||||
|
|
||||||
|
Status = EFI_SUCCESS;
|
||||||
|
|
||||||
//
|
//
|
||||||
// When SEV is enabled, install IoMmu protocol otherwise install the
|
// When SEV is enabled, install IoMmu protocol otherwise install the
|
||||||
|
@ -43,6 +45,8 @@ IoMmuDxeEntryPoint (
|
||||||
if (MemEncryptSevIsEnabled ()) {
|
if (MemEncryptSevIsEnabled ()) {
|
||||||
AmdSevInstallIoMmuProtocol ();
|
AmdSevInstallIoMmuProtocol ();
|
||||||
} else {
|
} else {
|
||||||
|
Handle = NULL;
|
||||||
|
|
||||||
Status = gBS->InstallMultipleProtocolInterfaces (
|
Status = gBS->InstallMultipleProtocolInterfaces (
|
||||||
&Handle,
|
&Handle,
|
||||||
&gIoMmuAbsentProtocolGuid,
|
&gIoMmuAbsentProtocolGuid,
|
||||||
|
|
Loading…
Reference in New Issue