Skip to content

Commit

Permalink
Merge pull request #179 from thnkslprpt/fix-178-return-parentheses
Browse files Browse the repository at this point in the history
Fix #178, Remove unnecessary parentheses around return values.
  • Loading branch information
dzbaker committed Oct 3, 2022
2 parents ee1b193 + 7955272 commit 9e85da8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fsw/src/sample_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,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;
}

/*
Expand All @@ -152,7 +152,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;
}

/*
Expand All @@ -162,7 +162,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;
}

/*
Expand All @@ -173,7 +173,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;
}

/*
Expand All @@ -185,7 +185,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
{
Expand All @@ -195,7 +195,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() */

Expand Down Expand Up @@ -431,7 +431,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() */

Expand Down

0 comments on commit 9e85da8

Please sign in to comment.