From 8f702676071ab3e62a9c07d5bdc75f5c92e58946 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Sat, 13 Apr 2019 09:44:02 +0200 Subject: smbios: Fix copy paste error As reported by Coverity Scan CID 1400679. Change-Id: I526b78a0697b7eb3c3dc75974c3a3a714b3d343f Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/32313 Reviewed-by: Lijian Zhao Reviewed-by: HAOUAS Elyes Tested-by: build bot (Jenkins) --- src/arch/x86/smbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index d71c0d5ff9..1aa5be927d 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -656,7 +656,7 @@ smbios_write_type7(unsigned long *current, t->max_cache_size |= SMBIOS_CACHE_SIZE_UNIT_1KB; t->max_cache_size2 |= SMBIOS_CACHE_SIZE2_UNIT_1KB; } else { - if (cache_size < (SMBIOS_CACHE_SIZE_MASK * 64 * KiB)) + if (max_cache_size < (SMBIOS_CACHE_SIZE_MASK * 64 * KiB)) t->max_cache_size = max_cache_size / (64 * KiB); else t->max_cache_size = SMBIOS_CACHE_SIZE_OVERFLOW; -- cgit v1.2.3