Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1540, Remove 'return;' from last line of void functions. #2156

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions modules/cfe_testcase/src/es_task_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ void TaskFunction(void)
CFE_FT_Global.Count += 1;
OS_TaskDelay(100);
}
return;
}

/* A task function that verifies the behavior of other APIs when those are called from a child task */
Expand Down Expand Up @@ -89,7 +88,6 @@ void TaskExitFunction(void)
CFE_FT_Global.Count += 1;
CFE_ES_ExitChildTask();
}
return;
}

void TestCreateChild(void)
Expand Down
4 changes: 0 additions & 4 deletions modules/es/fsw/src/cfe_es_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2255,8 +2255,6 @@ void CFE_ES_LockSharedData(const char *FunctionName, int32 LineNumber)
FunctionName, (int)LineNumber);

} /* end if */

return;
}

/*----------------------------------------------------------------
Expand All @@ -2282,8 +2280,6 @@ void CFE_ES_UnlockSharedData(const char *FunctionName, int32 LineNumber)
FunctionName, (int)LineNumber);

} /* end if */

return;
}

/*----------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions modules/es/fsw/src/cfe_es_cds.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,6 @@ void CFE_ES_FormCDSName(char *FullCDSName, const char *CDSName, CFE_ES_AppId_t T

/* Complete formation of processor specific table name */
sprintf(FullCDSName, "%s.%s", AppName, CDSName);

return;
}

/*----------------------------------------------------------------
Expand Down
4 changes: 0 additions & 4 deletions modules/evs/fsw/src/cfe_evs_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ void EVS_AddLog(CFE_EVS_LongEventTlm_t *EVS_PktPtr)
}

OS_MutSemGive(CFE_EVS_Global.EVS_SharedDataMutexID);

return;
}

/*----------------------------------------------------------------
Expand All @@ -111,8 +109,6 @@ void EVS_ClearLog(void)
memset(CFE_EVS_Global.EVS_LogPtr->LogEntry, 0, sizeof(CFE_EVS_Global.EVS_LogPtr->LogEntry));

OS_MutSemGive(CFE_EVS_Global.EVS_SharedDataMutexID);

return;
}

/*----------------------------------------------------------------
Expand Down
4 changes: 0 additions & 4 deletions modules/evs/fsw/src/cfe_evs_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,6 @@ void CFE_EVS_ProcessCommandPacket(CFE_SB_Buffer_t *SBBufPtr)
(unsigned int)CFE_SB_MsgIdToValue(MessageID));
break;
}

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -560,8 +558,6 @@ void CFE_EVS_ProcessGroundCommand(CFE_SB_Buffer_t *SBBufPtr, CFE_SB_MsgId_t MsgI
{
CFE_EVS_Global.EVS_TlmPkt.Payload.CommandErrorCounter++;
}

return;
}

/*----------------------------------------------------------------
Expand Down
3 changes: 0 additions & 3 deletions modules/fs/fsw/src/cfe_fs_priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ void CFE_FS_LockSharedData(const char *FunctionName)
CFE_RESOURCEID_TO_ULONG(AppId), FunctionName);

} /* end if */

return;
}

/*----------------------------------------------------------------
Expand All @@ -110,5 +108,4 @@ void CFE_FS_UnlockSharedData(const char *FunctionName)
CFE_RESOURCEID_TO_ULONG(AppId), FunctionName);

} /* end if */
return;
}
4 changes: 0 additions & 4 deletions modules/sb/fsw/src/cfe_sb_priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ void CFE_SB_LockSharedData(const char *FuncName, int32 LineNumber)
(long)OsStatus, CFE_RESOURCEID_TO_ULONG(AppId), FuncName, (int)LineNumber);

} /* end if */

return;
}

/*----------------------------------------------------------------
Expand All @@ -168,8 +166,6 @@ void CFE_SB_UnlockSharedData(const char *FuncName, int32 LineNumber)
(long)OsStatus, CFE_RESOURCEID_TO_ULONG(AppId), FuncName, (int)LineNumber);

} /* end if */

return;
}

/*----------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions modules/tbl/fsw/src/cfe_tbl_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,6 @@ void CFE_TBL_FormTableName(char *FullTblName, const char *TblName, CFE_ES_AppId_

/* Complete formation of application specific table name */
sprintf(FullTblName, "%s.%s", AppName, TblName);

return;
}

/*----------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions modules/tbl/fsw/src/cfe_tbl_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ void CFE_TBL_TaskPipe(CFE_SB_Buffer_t *SBBufPtr)
*/
}
}

return;
}

/*----------------------------------------------------------------
Expand Down
10 changes: 0 additions & 10 deletions modules/time/fsw/src/cfe_time_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,6 @@ void CFE_TIME_Print(char *PrintBuffer, CFE_TIME_SysTime_t TimeToPrint)
*PrintBuffer++ = '0' + (char)(NumberOfMicros / 10);
*PrintBuffer++ = '0' + (char)(NumberOfMicros % 10);
*PrintBuffer++ = '\0';

return;
}

/*----------------------------------------------------------------
Expand All @@ -760,8 +758,6 @@ void CFE_TIME_ExternalTone(void)
** Call tone signal ISR (OK if called from non-ISR context)...
*/
CFE_TIME_Tone1HzISR();

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -863,8 +859,6 @@ void CFE_TIME_ExternalMET(CFE_TIME_SysTime_t NewMET)
** Process external MET data...
*/
CFE_TIME_ToneSendMET(NewMET);

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_SRC_MET */

Expand All @@ -883,8 +877,6 @@ void CFE_TIME_ExternalGPS(CFE_TIME_SysTime_t NewTime, int16 NewLeaps)
** Process external GPS time data...
*/
CFE_TIME_ToneSendGPS(NewTime, NewLeaps);

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_SRC_GPS */

Expand All @@ -903,7 +895,5 @@ void CFE_TIME_ExternalTime(CFE_TIME_SysTime_t NewTime)
** Process external time data...
*/
CFE_TIME_ToneSendTime(NewTime);

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_SRC_TIME */
2 changes: 0 additions & 2 deletions modules/time/fsw/src/cfe_time_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,6 @@ void CFE_TIME_TaskPipe(CFE_SB_Buffer_t *SBBufPtr)
break;

} /* switch (message ID) */

return;
}

/*----------------------------------------------------------------
Expand Down
18 changes: 0 additions & 18 deletions modules/time/fsw/src/cfe_time_tone.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ void CFE_TIME_ToneSend(void)
** Count of "time at the tone" commands sent with internal data...
*/
CFE_TIME_Global.InternalCount++;

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_SERVER */

Expand Down Expand Up @@ -646,8 +644,6 @@ void CFE_TIME_ToneData(const CFE_TIME_ToneDataCmd_Payload_t *ToneDataCmd)
** Maintain a count of tone data packets...
*/
CFE_TIME_Global.ToneDataCounter++;

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -689,8 +685,6 @@ void CFE_TIME_ToneSignal(void)
** Maintain a count of tone signal packets...
*/
CFE_TIME_Global.ToneSignalCounter++;

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -774,8 +768,6 @@ void CFE_TIME_ToneVerify(CFE_TIME_SysTime_t Time1, CFE_TIME_SysTime_t Time2)

PrevTime1 = Time1;
PrevTime2 = Time2;

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -965,8 +957,6 @@ void CFE_TIME_ToneUpdate(void)
{
CFE_EVS_SendEvent(CFE_TIME_FLY_OFF_EID, CFE_EVS_EventType_INFORMATION, "Stop FLYWHEEL");
}

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -1087,8 +1077,6 @@ void CFE_TIME_Tone1HzISR(void)

/* Exit performance monitoring */
CFE_ES_PerfLogExit(CFE_MISSION_TIME_TONE1HZISR_PERF_ID);

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -1147,7 +1135,6 @@ void CFE_TIME_Tone1HzTask(void)
** This should never happen - but during development we
** had an error in the creation of the semaphore.
*/
return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -1285,8 +1272,6 @@ void CFE_TIME_Local1HzISR(void)
** Enable 1Hz task (we can't send a SB message from here)...
*/
OS_BinSemGive(CFE_TIME_Global.LocalSemaphore);

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -1346,7 +1331,6 @@ void CFE_TIME_Local1HzTask(void)
** This should never happen - but during development we had an
** error in the creation of the semaphore.
*/
return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -1380,6 +1364,4 @@ void CFE_TIME_NotifyTimeSynchApps(void)
}
}
}

return;
}
26 changes: 0 additions & 26 deletions modules/time/fsw/src/cfe_time_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ void CFE_TIME_QueryResetVars(void)
}

CFE_TIME_FinishReferenceUpdate(RefState);

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -232,8 +230,6 @@ void CFE_TIME_UpdateResetVars(const CFE_TIME_Reference_t *Reference)
CFE_TIME_ResetDataPtr->TimeResetVars = LocalResetVars;
}
}

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -369,8 +365,6 @@ void CFE_TIME_InitData(void)
*/
CFE_MSG_Init(CFE_MSG_PTR(CFE_TIME_Global.Local1HzCmd.CommandHeader), CFE_SB_ValueToMsgId(CFE_TIME_1HZ_CMD_MID),
sizeof(CFE_TIME_Global.Local1HzCmd));

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -429,8 +423,6 @@ void CFE_TIME_GetHkData(const CFE_TIME_Reference_t *Reference)
CFE_TIME_Global.HkPacket.Payload.SecondsDelay = Reference->AtToneDelay.Seconds;
CFE_TIME_Global.HkPacket.Payload.SubsecsDelay = Reference->AtToneDelay.Subseconds;
#endif

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -551,8 +543,6 @@ void CFE_TIME_GetDiagData(void)
** Reset Area access status...
*/
CFE_TIME_Global.DiagPacket.Payload.DataStoreStatus = CFE_TIME_Global.DataStoreStatus;

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -681,8 +671,6 @@ void CFE_TIME_GetReference(CFE_TIME_Reference_t *Reference)
#endif

Reference->CurrentMET = CurrentMET;

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -816,8 +804,6 @@ void CFE_TIME_SetState(CFE_TIME_ClockState_Enum_t NewState)
** Time has changed, force anyone reading time to retry...
*/
CFE_TIME_FinishReferenceUpdate(RefState);

return;
}

/*----------------------------------------------------------------
Expand Down Expand Up @@ -875,8 +861,6 @@ void CFE_TIME_SetDelay(CFE_TIME_SysTime_t NewDelay, int16 Direction)
** Time has changed, force anyone reading time to retry...
*/
CFE_TIME_FinishReferenceUpdate(RefState);

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_CLIENT */

Expand Down Expand Up @@ -926,8 +910,6 @@ void CFE_TIME_SetTime(CFE_TIME_SysTime_t NewTime)
** Time has changed, force anyone reading time to retry...
*/
CFE_TIME_FinishReferenceUpdate(RefState);

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_SERVER */

Expand Down Expand Up @@ -964,8 +946,6 @@ void CFE_TIME_SetMET(CFE_TIME_SysTime_t NewMET)
** Time has changed, force anyone reading time to retry...
*/
CFE_TIME_FinishReferenceUpdate(RefState);

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_SERVER */

Expand All @@ -990,8 +970,6 @@ void CFE_TIME_SetSTCF(CFE_TIME_SysTime_t NewSTCF)
** Time has changed, force anyone reading time to retry...
*/
CFE_TIME_FinishReferenceUpdate(RefState);

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_SERVER */

Expand All @@ -1016,8 +994,6 @@ void CFE_TIME_SetLeapSeconds(int16 NewLeaps)
** Time has changed, force anyone reading time to retry...
*/
CFE_TIME_FinishReferenceUpdate(RefState);

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_SERVER */

Expand Down Expand Up @@ -1055,8 +1031,6 @@ void CFE_TIME_SetAdjust(CFE_TIME_SysTime_t NewAdjust, int16 Direction)
** Time has changed, force anyone reading time to retry...
*/
CFE_TIME_FinishReferenceUpdate(RefState);

return;
}
#endif /* CFE_PLATFORM_TIME_CFG_SERVER */

Expand Down