summaryrefslogtreecommitdiff
path: root/src/mainboard/pcengines
diff options
context:
space:
mode:
authorPaul Menzel <pmenzel@molgen.mpg.de>2020-02-08 17:09:14 +0100
committerMichał Żygowski <michal.zygowski@3mdeb.com>2020-02-13 08:36:01 +0000
commita71071c96bd76c0021d702eb174e94e6d902ea66 (patch)
treedab39dea42bd57a64e49483a8063a7f7754d1ec8 /src/mainboard/pcengines
parent0f6f70c3942c152c512b1aa51b6f6079a05e003b (diff)
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>
Diffstat (limited to 'src/mainboard/pcengines')
-rw-r--r--src/mainboard/pcengines/apu2/mainboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/pcengines/apu2/mainboard.c b/src/mainboard/pcengines/apu2/mainboard.c
index a13ded959a..9bf58a78b9 100644
--- a/src/mainboard/pcengines/apu2/mainboard.c
+++ b/src/mainboard/pcengines/apu2/mainboard.c
@@ -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;