From dc8665e23035904d6b4f6707f0bf16812764df67 Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 27 Sep 2022 15:17:49 +1000 Subject: [PATCH] Fix #46, Remove unnecessary parentheses around return values. --- fsw/src/cs_app.c | 6 +++--- fsw/src/cs_table_processing.c | 12 ++++++------ fsw/src/cs_utils.c | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fsw/src/cs_app.c b/fsw/src/cs_app.c index bb957e5..fd1cbd1 100644 --- a/fsw/src/cs_app.c +++ b/fsw/src/cs_app.c @@ -294,7 +294,7 @@ int32 CS_AppInit(void) CFE_EVS_SendEvent(CS_INIT_INF_EID, CFE_EVS_EventType_INFORMATION, "CS Initialized. Version %d.%d.%d.%d", CS_MAJOR_VERSION, CS_MINOR_VERSION, CS_REVISION, CS_MISSION_REV); } - return (Result); + return Result; } /* End of CS_AppInit () */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ @@ -336,7 +336,7 @@ int32 CS_AppPipe(const CFE_SB_Buffer_t *BufPtr) break; } - return (Result); + return Result; } /* End of CS_AppPipe () */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ @@ -663,7 +663,7 @@ int32 CS_CreateRestoreStatesFromCDS(void) Result = CFE_SUCCESS; } - return (Result); + return Result; } /* End of CS_CreateCDS() */ diff --git a/fsw/src/cs_table_processing.c b/fsw/src/cs_table_processing.c index ddaf2ec..726ae4e 100644 --- a/fsw/src/cs_table_processing.c +++ b/fsw/src/cs_table_processing.c @@ -117,7 +117,7 @@ int32 CS_ValidateEepromChecksumDefinitionTable(void *TblPtr) "CS Eeprom Table verification results: good = %d, bad = %d, unused = %d", (int)GoodCount, (int)BadCount, (int)EmptyCount); - return (Result); + return Result; } /* CS_ValidateEEPROMCheckSumDefinitionTable */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ @@ -201,7 +201,7 @@ int32 CS_ValidateMemoryChecksumDefinitionTable(void *TblPtr) "CS Memory Table verification results: good = %d, bad = %d, unused = %d", (int)GoodCount, (int)BadCount, (int)EmptyCount); - return (Result); + return Result; } /* CS_ValidateMemoryCheckSumDefinitionTable */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ @@ -317,7 +317,7 @@ int32 CS_ValidateTablesChecksumDefinitionTable(void *TblPtr) "CS Tables Table verification results: good = %d, bad = %d, unused = %d", (int)GoodCount, (int)BadCount, (int)EmptyCount); - return (Result); + return Result; } /* CS_ValidateTablesCheckSumDefinitionTable */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ @@ -432,7 +432,7 @@ int32 CS_ValidateAppChecksumDefinitionTable(void *TblPtr) "CS Apps Table verification results: good = %d, bad = %d, unused = %d", (int)GoodCount, (int)BadCount, (int)EmptyCount); - return (Result); + return Result; } /* CS_ValidateAppCheckSumDefinitionTable */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ @@ -940,7 +940,7 @@ int32 CS_TableInit(CFE_TBL_Handle_t *DefinitionTableHandle, CFE_TBL_Handle_t *Re break; } } - return (Result); + return Result; } /* end of CS_CheckSum_Definition_Table_Init () */ @@ -1052,7 +1052,7 @@ int32 CS_HandleTableUpdate(void *DefinitionTblPtr, void *ResultsTblPtr, CFE_TBL_ (unsigned int)ManageResult2, (unsigned int)GetResult2, TableType); } } - return (Result); + return Result; } /* end CS_HandleTableUpdate */ /************************/ diff --git a/fsw/src/cs_utils.c b/fsw/src/cs_utils.c index c51e857..5b43853 100644 --- a/fsw/src/cs_utils.c +++ b/fsw/src/cs_utils.c @@ -479,7 +479,7 @@ bool CS_VerifyCmdLength(const CFE_MSG_Message_t *msg, size_t ExpectedLength) Result = false; CS_AppData.HkPacket.CmdErrCounter++; } - return (Result); + return Result; } /* End of CS_VerifyCmdLength */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */