host-bmc: remove unused response PDR buffer copy In processHostPDRs(), a local buffer responsePDRMsg was allocated and filled via memcpy after the first call to decode_get_pdr_resp(), but was never read or used anywhere in the function or elsewhere in the codebase. Remove the dead code to eliminate an unnecessary heap allocation and memcpy on every PDR response received from the host firmware. No functional change intended. Tested: meson test -C build (34/34 passed) Change-Id: I877e435a64c1d62db4b8e91db3ce311098997932 Signed-off-by: Meghana Vangapandu <meghanav@ami.com>
diff --git a/host-bmc/host_pdr_handler.cpp b/host-bmc/host_pdr_handler.cpp index ba8e6f2..c249d7a 100644 --- a/host-bmc/host_pdr_handler.cpp +++ b/host-bmc/host_pdr_handler.cpp
@@ -527,9 +527,6 @@ response, respMsgLen /*- sizeof(pldm_msg_hdr)*/, &completionCode, &nextRecordHandle, &nextDataTransferHandle, &transferFlag, &respCount, nullptr, 0, &transferCRC); - std::vector<uint8_t> responsePDRMsg; - responsePDRMsg.resize(respMsgLen + sizeof(pldm_msg_hdr)); - memcpy(responsePDRMsg.data(), response, respMsgLen + sizeof(pldm_msg_hdr)); if (rc != PLDM_SUCCESS) { error(