summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/amd/common/block/acpi/ivrs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/soc/amd/common/block/acpi/ivrs.c b/src/soc/amd/common/block/acpi/ivrs.c
index 79b4ff6375..8d127e9467 100644
--- a/src/soc/amd/common/block/acpi/ivrs.c
+++ b/src/soc/amd/common/block/acpi/ivrs.c
@@ -52,6 +52,7 @@ static unsigned long ivhd_describe_f0_device(unsigned long current,
uint16_t dev_id, uint8_t datasetting)
{
ivrs_ivhd_f0_entry_t *ivhd_f0 = (ivrs_ivhd_f0_entry_t *)current;
+ memset(ivhd_f0, 0, sizeof(*ivhd_f0));
ivhd_f0->type = IVHD_DEV_VARIABLE;
ivhd_f0->dev_id = dev_id;
@@ -65,11 +66,6 @@ static unsigned long ivhd_describe_f0_device(unsigned long current,
ivhd_f0->hardware_id[6] = '4';
ivhd_f0->hardware_id[7] = '0';
- memset(ivhd_f0->compatible_id, 0, sizeof(ivhd_f0->compatible_id));
-
- ivhd_f0->uuid_format = 0;
- ivhd_f0->uuid_length = 0;
-
current += sizeof(ivrs_ivhd_f0_entry_t);
return current;
}