From 7d7a826f969ef9ccce4182d08d6dba615eaef9c7 Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Mon, 15 Jan 2024 10:28:05 +1000 Subject: [PATCH] Fix #2495, Remove superfluous status assignment in `CFE_SB_CreatePipe` --- modules/sb/fsw/src/cfe_sb_api.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/sb/fsw/src/cfe_sb_api.c b/modules/sb/fsw/src/cfe_sb_api.c index bc4280ece..fd0e057ec 100644 --- a/modules/sb/fsw/src/cfe_sb_api.c +++ b/modules/sb/fsw/src/cfe_sb_api.c @@ -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) {