OvmfPkg/VirtIoSerialDxe: Update for VS2015x86 compatibility

Move initialization of local variable structure from declaration
to statements to fix VS2015x86 build break.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ard Biesheuvel <ardb+tianocore@kernel.org>
This commit is contained in:
Michael D Kinney 2023-05-26 15:18:51 -07:00 committed by mergify[bot]
parent e1f5c6249a
commit c0bce66068
1 changed files with 5 additions and 5 deletions

View File

@ -66,11 +66,11 @@ VirtioSerialTxControl (
IN UINT16 Value
)
{
VIRTIO_SERIAL_CONTROL Control = {
.Id = Id,
.Event = Event,
.Value = Value,
};
VIRTIO_SERIAL_CONTROL Control;
Control.Id = Id;
Control.Event = Event;
Control.Value = Value;
DEBUG ((
DEBUG_INFO,