summaryrefslogtreecommitdiff
path: root/src/vendorcode/cavium
diff options
context:
space:
mode:
authorBora Guvendik <bora.guvendik@intel.com>2019-12-26 15:49:09 -0800
committerAaron Durbin <adurbin@chromium.org>2019-12-27 16:08:40 +0000
commitd6db845f013ae69e72cc36c2bf657fe34d4855d6 (patch)
tree89aacfdc2d1444f96dd9add2521f608dc2015fc8 /src/vendorcode/cavium
parent9fadd9a917c15d76067825073afb683e90ac19b1 (diff)
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>
Diffstat (limited to 'src/vendorcode/cavium')
-rw-r--r--src/vendorcode/cavium/bdk/libdram/dram-spd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vendorcode/cavium/bdk/libdram/dram-spd.c b/src/vendorcode/cavium/bdk/libdram/dram-spd.c
index 894a0604c4..8aec41ca55 100644
--- a/src/vendorcode/cavium/bdk/libdram/dram-spd.c
+++ b/src/vendorcode/cavium/bdk/libdram/dram-spd.c
@@ -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);
if (data < 0)
{
- free(spd_buf);
bdk_error("Failed to read SPD data at 0x%x\n", i + (bank << 8));
/* Restore the bank to zero */
if (bank)