PEL: Remove HWAS_STATE updates from sbe ffdc processing api
Common PEL hardware Deconfiguration record adding function will
take care HWAS_STATE attribute updates. Removing the duplicate code.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I783aaa94ad864b17dd6d9d018a9e0def7a4fe7f7
diff --git a/extensions/openpower-pels/fapi_data_process.cpp b/extensions/openpower-pels/fapi_data_process.cpp
index 752ab87..3550e1f 100644
--- a/extensions/openpower-pels/fapi_data_process.cpp
+++ b/extensions/openpower-pels/fapi_data_process.cpp
@@ -118,27 +118,6 @@
return requireAttrNotFound;
}
- if (targetInfo->deconfigure)
- {
- ATTR_HWAS_STATE_Type hwasState;
- if (DT_GET_PROP(ATTR_HWAS_STATE, target, hwasState))
- {
- log<level::ERR>("Could not read HWAS_STATE attribute");
- return requireAttrNotFound;
- }
-
- log<level::INFO>(fmt::format("Marking target({}) as Non-Functional",
- targetInfo->physDevPath)
- .c_str());
- hwasState.functional = 0;
-
- if (DT_SET_PROP(ATTR_HWAS_STATE, target, hwasState))
- {
- log<level::ERR>("Could not write HWAS_STATE attribute");
- return requireAttrNotFound;
- }
- }
-
return requireAttrFound;
}