mb/pcengines/apu2: Use variable `len` holding same value

Change-Id: Ia5916f191a7b1a846231b7e36924a16f3a658961
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38784
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
This commit is contained in:
Paul Menzel 2020-02-08 17:09:14 +01:00 committed by Michał Żygowski
parent 0f6f70c394
commit a71071c96b
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ static int mainboard_smbios_type16(DMI_INFO *agesa_dmi, int *handle,
t = (struct smbios_type16 *)*current;
len = sizeof(struct smbios_type16);
memset(t, 0, sizeof(struct smbios_type16));
memset(t, 0, len);
max_capacity = get_spd_offset() ? 4 : 2; /* 4GB or 2GB variant */
t->type = SMBIOS_PHYS_MEMORY_ARRAY;