pldm: Remove boost related code in pldm daemon
Use the crc32 method in libpldm/utils.h instead of boost::crc_32_type
and remove boost related code.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I114eb83a73c5c47bdd44d5ad53f3ff6101235558
diff --git a/libpldmresponder/fru.cpp b/libpldmresponder/fru.cpp
index 42babc3..df29065 100644
--- a/libpldmresponder/fru.cpp
+++ b/libpldmresponder/fru.cpp
@@ -4,11 +4,12 @@
#include <systemd/sd-journal.h>
-#include <boost/crc.hpp>
#include <iostream>
#include <sdbusplus/bus.hpp>
#include <set>
+#include "libpldm/utils.h"
+
namespace pldm
{
@@ -111,9 +112,7 @@
table.resize(table.size() + padBytes, 0);
// Calculate the checksum
- boost::crc_32_type result;
- result.process_bytes(table.data(), table.size());
- checksum = result.checksum();
+ checksum = crc32(table.data(), table.size());
}
}