From d6db845f013ae69e72cc36c2bf657fe34d4855d6 Mon Sep 17 00:00:00 2001 From: Bora Guvendik Date: Thu, 26 Dec 2019 15:49:09 -0800 Subject: dram-spd: Remove free() free() is not needed since the memory is not dynamically allocated. Change-Id: I90659722aaca6ced1e1cbc3db4180b0811205e95 Signed-off-by: Bora Guvendik Reviewed-on: https://review.coreboot.org/c/coreboot/+/37940 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/vendorcode/cavium/bdk/libdram/dram-spd.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/vendorcode') 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) -- cgit v1.2.3