summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/targeting')
-rwxr-xr-xsrc/usr/targeting/attrrp_common.C11
-rw-r--r--src/usr/targeting/runtime/attrrp_rt.C5
2 files changed, 3 insertions, 13 deletions
diff --git a/src/usr/targeting/attrrp_common.C b/src/usr/targeting/attrrp_common.C
index 173c249ec..a78017e29 100755
--- a/src/usr/targeting/attrrp_common.C
+++ b/src/usr/targeting/attrrp_common.C
@@ -58,13 +58,13 @@ namespace TARGETING
AttrRP::~AttrRP()
{
- if (iv_sections) // @TODO RTC:186585 move if... to #ifndef clause
+#ifndef __HOSTBOOT_RUNTIME
+ if (iv_sections)
{
delete[] iv_sections;
iv_sections = nullptr;
- } // @TODO RTC:186585 move if... to #ifndef clause
+ }
-#ifndef __HOSTBOOT_RUNTIME
msg_q_destroy(iv_msgQ);
TARG_ASSERT(false, "Assert to exit ~AttrRP");
#else
@@ -72,11 +72,6 @@ namespace TARGETING
{
if (iv_nodeContainer[i].pSections)
{
- if((i == NODE0) && (iv_sections == nullptr))
- {
- iv_nodeContainer[i].pSections = nullptr;
- continue;
- } // @TODO RTC:186585 move if...
delete[] iv_nodeContainer[i].pSections;
iv_nodeContainer[i].pSections = nullptr;
}
diff --git a/src/usr/targeting/runtime/attrrp_rt.C b/src/usr/targeting/runtime/attrrp_rt.C
index 8d260cf75..9f8cce8a6 100644
--- a/src/usr/targeting/runtime/attrrp_rt.C
+++ b/src/usr/targeting/runtime/attrrp_rt.C
@@ -277,11 +277,6 @@ namespace TARGETING
io_nodeCont.sectionCount = i_header->numSections;
io_nodeCont.pSections =
new AttrRP_Section[io_nodeCont.sectionCount]();
- if (i_nodeId == NODE0) // @TODO RTC:186585 remove
- { // @TODO RTC:186585 remove
- iv_sectionCount = io_nodeCont.sectionCount; // @TODO RTC:186585
- iv_sections = io_nodeCont.pSections; // @TODO RTC:186585 remove
- } // @TODO RTC:186585 remove
// Find start to the first section:
// (header address + size of header + offset in header)
OpenPOWER on IntegriCloud