Fix FRU area check
One of the IPMI FRU area checks deals with the old openbmc skeleton
interfaces, which is no longer valid. Fixed that.
Change-Id: Id406d4967d130136d4ac2a8efff94dac65d7ee0e
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/writefrudata.cpp b/writefrudata.cpp
index 9a19e7d..635653f 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -554,10 +554,8 @@
///----------------------------------------------------
bool remove_invalid_area(const std::unique_ptr<ipmi_fru> &fru_area)
{
- // Filter the ones that do not have dbus reference.
- if((strlen((fru_area)->get_bus_name()) == 0) ||
- (strlen((fru_area)->get_obj_path()) == 0) ||
- (strlen((fru_area)->get_intf_name()) == 0))
+ // Filter the ones that are empty
+ if(!(fru_area->get_len()))
{
return true;
}