From 89ededd0383bd60f5aadf3e73af489e79f138293 Mon Sep 17 00:00:00 2001 From: Deepak Kodihalli Date: Sat, 11 Feb 2017 01:59:32 -0600 Subject: 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 --- writefrudata.cpp | 6 ++---- 1 file 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 &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; } -- cgit v1.2.1