Skip to content

Commit

Permalink
Fix nasa#1261, Remove redundant checks in CFE_EVS_EarlyInit
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Mar 24, 2021
1 parent 98bc158 commit 0905f87
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions modules/evs/fsw/src/cfe_evs_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ int32 CFE_EVS_EarlyInit(void)
CFE_PSP_Panic(CFE_PSP_PANIC_MEMORY_ALLOC);
}
else
{
Status = CFE_SUCCESS;
}

if (Status == CFE_SUCCESS)
{
CFE_EVS_ResetDataPtr = (CFE_ES_ResetData_t *)resetAreaAddr;
/* Save pointer to the EVS portion of the CFE reset area */
Expand All @@ -134,12 +129,9 @@ int32 CFE_EVS_EarlyInit(void)
}
else
{
/* Convert to CFE success type */
Status = CFE_SUCCESS;
}
}

if (Status == CFE_SUCCESS)
{

/* Report log as enabled */
CFE_EVS_Global.EVS_TlmPkt.Payload.LogEnabled = true;
Expand Down

0 comments on commit 0905f87

Please sign in to comment.