smbios: Fix copy paste error
As reported by Coverity Scan CID 1400679. Change-Id: I526b78a0697b7eb3c3dc75974c3a3a714b3d343f Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32313 Reviewed-by: Lijian Zhao <lijian.zhao@intel.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
64a6bcaa4e
commit
8f70267607
|
@ -656,7 +656,7 @@ smbios_write_type7(unsigned long *current,
|
||||||
t->max_cache_size |= SMBIOS_CACHE_SIZE_UNIT_1KB;
|
t->max_cache_size |= SMBIOS_CACHE_SIZE_UNIT_1KB;
|
||||||
t->max_cache_size2 |= SMBIOS_CACHE_SIZE2_UNIT_1KB;
|
t->max_cache_size2 |= SMBIOS_CACHE_SIZE2_UNIT_1KB;
|
||||||
} else {
|
} 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);
|
t->max_cache_size = max_cache_size / (64 * KiB);
|
||||||
else
|
else
|
||||||
t->max_cache_size = SMBIOS_CACHE_SIZE_OVERFLOW;
|
t->max_cache_size = SMBIOS_CACHE_SIZE_OVERFLOW;
|
||||||
|
|
Loading…
Reference in New Issue