summaryrefslogtreecommitdiffstats
path: root/writefrudata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'writefrudata.cpp')
-rw-r--r--writefrudata.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/writefrudata.cpp b/writefrudata.cpp
index 9a19e7d..635653f 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -554,10 +554,8 @@ int ipmi_update_inventory(fru_area_vec_t& area_vec)
///----------------------------------------------------
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;
}
OpenPOWER on IntegriCloud