From 7955272618e61359d236af0548d33808f1a8373a Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 27 Sep 2022 14:54:58 +1000 Subject: [PATCH] Fix #178, Remove unnecessary parentheses around return values. --- fsw/src/sample_app.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fsw/src/sample_app.c b/fsw/src/sample_app.c index 7c3e884..ae6bf79 100644 --- a/fsw/src/sample_app.c +++ b/fsw/src/sample_app.c @@ -157,7 +157,7 @@ int32 SAMPLE_APP_Init(void) if (status != CFE_SUCCESS) { CFE_ES_WriteToSysLog("Sample App: Error Registering Events, RC = 0x%08lX\n", (unsigned long)status); - return (status); + return status; } /* @@ -172,7 +172,7 @@ int32 SAMPLE_APP_Init(void) if (status != CFE_SUCCESS) { CFE_ES_WriteToSysLog("Sample App: Error creating pipe, RC = 0x%08lX\n", (unsigned long)status); - return (status); + return status; } /* @@ -182,7 +182,7 @@ int32 SAMPLE_APP_Init(void) if (status != CFE_SUCCESS) { CFE_ES_WriteToSysLog("Sample App: Error Subscribing to HK request, RC = 0x%08lX\n", (unsigned long)status); - return (status); + return status; } /* @@ -193,7 +193,7 @@ int32 SAMPLE_APP_Init(void) { CFE_ES_WriteToSysLog("Sample App: Error Subscribing to Command, RC = 0x%08lX\n", (unsigned long)status); - return (status); + return status; } /* @@ -205,7 +205,7 @@ int32 SAMPLE_APP_Init(void) { CFE_ES_WriteToSysLog("Sample App: Error Registering Table, RC = 0x%08lX\n", (unsigned long)status); - return (status); + return status; } else { @@ -215,7 +215,7 @@ int32 SAMPLE_APP_Init(void) CFE_EVS_SendEvent(SAMPLE_APP_STARTUP_INF_EID, CFE_EVS_EventType_INFORMATION, "SAMPLE App Initialized.%s", SAMPLE_APP_VERSION_STRING); - return (CFE_SUCCESS); + return CFE_SUCCESS; } /* End of SAMPLE_APP_Init() */ @@ -451,7 +451,7 @@ bool SAMPLE_APP_VerifyCmdLength(CFE_MSG_Message_t *MsgPtr, size_t ExpectedLength SAMPLE_APP_Data.ErrCounter++; } - return (result); + return result; } /* End of SAMPLE_APP_VerifyCmdLength() */