Skip to content

Commit

Permalink
Merge pull request #2496 from thnkslprpt:fix-2495-remove-superflous-s…
Browse files Browse the repository at this point in the history
…tatus-assignment-in-CFE_SB_CreatePipe

Fix #2495, Remove superfluous status assignment in CFE_SB_CreatePipe
  • Loading branch information
dzbaker committed Jul 1, 2024
2 parents 6059459 + 7d7a826 commit d6bfc2f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions modules/sb/fsw/src/cfe_sb_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,7 @@ CFE_Status_t CFE_SB_CreatePipe(CFE_SB_PipeId_t *PipeIdPtr, uint16 Depth, const c
{
/* create the queue */
OsStatus = OS_QueueCreate(&SysQueueId, PipeName, Depth, sizeof(CFE_SB_BufferD_t *), 0);
if (OsStatus == OS_SUCCESS)
{
/* just translate the RC to CFE */
Status = CFE_SUCCESS;
}
else
if (OsStatus != OS_SUCCESS)
{
if (OsStatus == OS_ERR_NAME_TAKEN)
{
Expand Down

0 comments on commit d6bfc2f

Please sign in to comment.