dram-spd: Remove free()
free() is not needed since the memory is not dynamically allocated. Change-Id: I90659722aaca6ced1e1cbc3db4180b0811205e95 Signed-off-by: Bora Guvendik <bora.guvendik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37940 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
9fadd9a917
commit
d6db845f01
|
@ -105,7 +105,6 @@ int read_entire_spd(bdk_node_t node, dram_config_t *cfg, int lmc, int dimm)
|
||||||
int64_t data = bdk_twsix_read_ia(node, bus, address, i, 4, 1);
|
int64_t data = bdk_twsix_read_ia(node, bus, address, i, 4, 1);
|
||||||
if (data < 0)
|
if (data < 0)
|
||||||
{
|
{
|
||||||
free(spd_buf);
|
|
||||||
bdk_error("Failed to read SPD data at 0x%x\n", i + (bank << 8));
|
bdk_error("Failed to read SPD data at 0x%x\n", i + (bank << 8));
|
||||||
/* Restore the bank to zero */
|
/* Restore the bank to zero */
|
||||||
if (bank)
|
if (bank)
|
||||||
|
|
Loading…
Reference in New Issue