Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b8a323c

Browse files
committedJan 14, 2020
Merge pull request nasa#432 from avan989/cppcheck_12_12_2019
Fix nasa#425, update cppcheck
2 parents da8ede1 + ff54fc3 commit b8a323c

18 files changed

+47
-47
lines changed
 

‎fsw/cfe-core/src/es/cfe_es_api.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ void CFE_ES_WaitForStartupSync(uint32 TimeOutMilliseconds)
721721
*/
722722
int32 CFE_ES_RegisterApp(void)
723723
{
724-
int32 Result = CFE_SUCCESS;
724+
int32 Result;
725725

726726
CFE_ES_LockSharedData(__func__,__LINE__);
727727

@@ -1470,7 +1470,7 @@ uint32 CFE_ES_CalculateCRC(const void *DataPtr, uint32 DataLength, uint32 InputC
14701470
*/
14711471
int32 CFE_ES_RegisterCDS(CFE_ES_CDSHandle_t *CDSHandlePtr, int32 BlockSize, const char *Name)
14721472
{
1473-
int32 Status = CFE_SUCCESS;
1473+
int32 Status;
14741474
size_t NameLen = 0;
14751475
uint32 ThisAppId = 0;
14761476

@@ -1550,7 +1550,7 @@ int32 CFE_ES_RegisterCDS(CFE_ES_CDSHandle_t *CDSHandlePtr, int32 BlockSize, cons
15501550
*/
15511551
int32 CFE_ES_CopyToCDS(CFE_ES_CDSHandle_t Handle, void *DataToCopy)
15521552
{
1553-
int32 Status = CFE_SUCCESS;
1553+
int32 Status;
15541554

15551555
Status = CFE_ES_CDSBlockWrite(CFE_ES_Global.CDSVars.Registry[Handle].MemHandle, DataToCopy);
15561556

@@ -1565,7 +1565,7 @@ int32 CFE_ES_CopyToCDS(CFE_ES_CDSHandle_t Handle, void *DataToCopy)
15651565
*/
15661566
int32 CFE_ES_RestoreFromCDS(void *RestoreToMemory, CFE_ES_CDSHandle_t Handle)
15671567
{
1568-
int32 Status = CFE_SUCCESS;
1568+
int32 Status;
15691569

15701570
Status = CFE_ES_CDSBlockRead(RestoreToMemory, CFE_ES_Global.CDSVars.Registry[Handle].MemHandle);
15711571

‎fsw/cfe-core/src/es/cfe_es_apps.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ int32 CFE_ES_AppCreate(uint32 *ApplicationIdPtr,
174174
** Internal function to load a a new cFE shared Library
175175
*/
176176
int32 CFE_ES_LoadLibrary(uint32 *LibraryIdPtr,
177-
const char *Path,
177+
const char *FileName,
178178
const void *EntryPointData,
179-
const char *Name);
179+
const char *LibName);
180180

181181
/*
182182
** Get Application List

‎fsw/cfe-core/src/es/cfe_es_cds.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ int32 CFE_ES_RebuildCDS(void);
149149
int32 CFE_ES_CDS_EarlyInit(void)
150150
{
151151
uint32 MinRequiredSize = 0;
152-
int32 Status = CFE_SUCCESS;
152+
int32 Status;
153153

154154
/* Compute the minimum size required for the CDS with the current configuration of the cFE */
155155
MinRequiredSize = (sizeof(CFE_ES_Global.CDSVars.ValidityField) * 2) + /* Minimum size for validity fields */
@@ -512,7 +512,7 @@ int32 CFE_ES_InitCDSRegistry(void)
512512

513513
int32 CFE_ES_UpdateCDSRegistry(void)
514514
{
515-
int32 Status = CFE_SUCCESS;
515+
int32 Status;
516516

517517
/* Copy the contents of the local registry to the CDS */
518518
Status = CFE_PSP_WriteToCDS(CFE_ES_Global.CDSVars.Registry,
@@ -696,7 +696,7 @@ int32 CFE_ES_FindFreeCDSRegistryEntry(void)
696696

697697
int32 CFE_ES_RebuildCDS(void)
698698
{
699-
int32 Status = CFE_SUCCESS;
699+
int32 Status;
700700
int32 PoolOffset;
701701

702702
/* First, determine if the CDS registry stored in the CDS is smaller or equal */

‎fsw/cfe-core/src/es/cfe_es_log.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -239,19 +239,19 @@ void CFE_ES_SysLogReadData(CFE_ES_SysLogReadBuffer_t *Buffer);
239239
* The operating mode of the system log controls its behavior once filled to the point
240240
* where additional messages can no longer be stored.
241241
*
242-
* If "LogMode" is set to DISCARD, then the message will be truncated
242+
* If "Mode" is set to DISCARD, then the message will be truncated
243243
* to fit in the available space, or completely discarded if no space exists.
244244
*
245-
* If "LogMode" is set to OVERWRITE, then the oldest message(s) in the
245+
* If "Mode" is set to OVERWRITE, then the oldest message(s) in the
246246
* system log will be overwritten with this new message.
247247
*
248248
* \note Switching from OVERWRITE to DISCARD mode may take effect immediately, as the
249249
* setting only takes effect when the buffer "wrap-point" is reached at the end.
250250
*
251-
* \param LogMode The desired operating mode
251+
* \param Mode The desired operating mode
252252
* \return CFE_SUCCESS if set successfully
253253
*/
254-
int32 CFE_ES_SysLogSetMode(CFE_ES_LogMode_Enum_t LogMode);
254+
int32 CFE_ES_SysLogSetMode(CFE_ES_LogMode_Enum_t Mode);
255255

256256
/**
257257
* \brief Format a message intended for output to the system log

‎fsw/cfe-core/src/es/cfe_es_shell.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ int32 CFE_ES_ListTasks(int32 fd)
282282
* length defined by osconfig.
283283
*/
284284
char Line [96 + (OS_MAX_API_NAME * 2)];
285-
int32 Result = CFE_SUCCESS;
285+
int32 Result;
286286
CFE_ES_TaskInfo_t TaskInfo;
287287

288288
/* Make sure we start at the beginning of the file */
@@ -356,7 +356,7 @@ static void CFE_ES_ShellCountObjectCallback(uint32 object_id, void *arg)
356356
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
357357
int32 CFE_ES_ListResources(int32 fd)
358358
{
359-
int32 Result = CFE_SUCCESS;
359+
int32 Result;
360360
int32 NumSemaphores = 0;
361361
int32 NumCountSems =0;
362362
int32 NumMutexes = 0;

‎fsw/cfe-core/src/es/cfe_es_start.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#include <stdio.h>
4949
#include <string.h>
5050

51-
static int32 CFE_ES_MainTaskSyncDelay(uint32 AppMinState, uint32 TimeOutMilliseconds);
51+
static int32 CFE_ES_MainTaskSyncDelay(uint32 AppStateId, uint32 TimeOutMilliseconds);
5252

5353
/***************************************************************************/
5454

@@ -480,7 +480,7 @@ void CFE_ES_SetupResetVariables(uint32 StartType, uint32 StartSubtype, uint32 Bo
480480
** Purpose: This function initializes the file systems used in the cFE core.
481481
**
482482
*/
483-
void CFE_ES_InitializeFileSystems(uint32 start_type)
483+
void CFE_ES_InitializeFileSystems(uint32 StartType)
484484
{
485485
int32 RetStatus;
486486
cpuaddr RamDiskMemoryAddress;
@@ -513,7 +513,7 @@ void CFE_ES_InitializeFileSystems(uint32 start_type)
513513
** Next, either format, or just initialize the RAM disk depending on
514514
** the reset type
515515
*/
516-
if ( start_type == CFE_PSP_RST_TYPE_POWERON )
516+
if ( StartType == CFE_PSP_RST_TYPE_POWERON )
517517
{
518518
RetStatus = OS_mkfs((void *)RamDiskMemoryAddress, "/ramdev0", "RAM", CFE_PLATFORM_ES_RAM_DISK_SECTOR_SIZE, CFE_PLATFORM_ES_RAM_DISK_NUM_SECTORS );
519519
if ( RetStatus != OS_FS_SUCCESS )
@@ -584,7 +584,7 @@ void CFE_ES_InitializeFileSystems(uint32 start_type)
584584
** Note: When CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED is set to 0, this feature is
585585
** disabled.
586586
*/
587-
if ((start_type == CFE_PSP_RST_TYPE_PROCESSOR) && (CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED > 0))
587+
if ((StartType == CFE_PSP_RST_TYPE_PROCESSOR) && (CFE_PLATFORM_ES_RAM_DISK_PERCENT_RESERVED > 0))
588588
{
589589
/*
590590
** See how many blocks are free in the RAM disk

‎fsw/cfe-core/src/es/cfe_es_start.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ extern CFE_ES_ObjectTable_t CFE_ES_ObjectTable[CFE_PLATFORM_ES_OBJECT_TABLE_SIZE
9393
extern void CFE_ES_CreateObjects(void);
9494
extern void CFE_ES_SetupResetVariables(uint32 StartType, uint32 StartSubtype, uint32 BootSource);
9595
extern void CFE_ES_InitializeFileSystems(uint32 StartType);
96-
extern void CFE_ES_SetupPerfVariables(uint32 StartType);
96+
extern void CFE_ES_SetupPerfVariables(uint32 ResetType);
9797

9898

9999
#endif /* _cfe_es_start_ */

‎fsw/cfe-core/src/es/cfe_es_syslog.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ int32 CFE_ES_SysLogSetMode(CFE_ES_LogMode_Enum_t Mode)
373373
* with arguments similar to the "vsnprintf()" C library API call
374374
* -----------------------------------------------------------------
375375
*/
376-
void CFE_ES_SysLog_vsnprintf(char *Buffer, size_t BufferSize, const char *SpecStringPtr, va_list ap)
376+
void CFE_ES_SysLog_vsnprintf(char *Buffer, size_t BufferSize, const char *SpecStringPtr, va_list ArgPtr)
377377
{
378378
size_t StringLen;
379379
size_t MaxLen;
@@ -405,7 +405,7 @@ void CFE_ES_SysLog_vsnprintf(char *Buffer, size_t BufferSize, const char *SpecSt
405405
++StringLen;
406406

407407
/* note that vsnprintf() may return a size larger than the buffer, if it truncates. */
408-
PrintLen = vsnprintf(&Buffer[StringLen], BufferSize - StringLen, SpecStringPtr, ap);
408+
PrintLen = vsnprintf(&Buffer[StringLen], BufferSize - StringLen, SpecStringPtr, ArgPtr);
409409
if (PrintLen > 0)
410410
{
411411
StringLen += PrintLen;

‎fsw/cfe-core/src/fs/cfe_fs_api.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int32 CFE_FS_WriteHeader(int32 FileDes, CFE_FS_Header_t *Hdr)
166166

167167
int32 CFE_FS_SetTimestamp(int32 FileDes, CFE_TIME_SysTime_t NewTimestamp)
168168
{
169-
int32 Result = OS_FS_SUCCESS;
169+
int32 Result;
170170
CFE_FS_Header_t TempHdr;
171171
int32 EndianCheck = 0x01020304;
172172
CFE_TIME_SysTime_t OutTimestamp = NewTimestamp;

‎fsw/cfe-core/src/fs/cfe_fs_decompress.c

+1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ int32 FS_gz_eat_header_Reentrant( CFE_FS_Decompress_State_t *State )
203203
if( State->Error != CFE_SUCCESS ) return CFE_FS_GZIP_READ_ERROR_HEADER;
204204
stamp |= (uint32)NEXTBYTE() << 16;
205205
if( State->Error != CFE_SUCCESS ) return CFE_FS_GZIP_READ_ERROR_HEADER;
206+
/* cppcheck-suppress unreadVariable */
206207
stamp |= (uint32)NEXTBYTE() << 24;
207208
if( State->Error != CFE_SUCCESS ) return CFE_FS_GZIP_READ_ERROR_HEADER;
208209

‎fsw/cfe-core/src/fs/cfe_fs_priv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ CFE_FS_t CFE_FS;
6363
*/
6464
int32 CFE_FS_EarlyInit (void)
6565
{
66-
int32 Stat = CFE_SUCCESS;
66+
int32 Stat;
6767

6868
Stat = OS_MutSemCreate(&CFE_FS.SharedDataMutexId, "CFE_FS_SharedMutex", 0);
6969
if( Stat != OS_SUCCESS )

‎fsw/cfe-core/src/sb/cfe_sb_init.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ uint32 CFE_SB_MemPoolDefSize[CFE_ES_MAX_MEMPOOL_BLOCK_SIZES] =
8585
*/
8686
int32 CFE_SB_EarlyInit (void) {
8787

88-
int32 Stat = CFE_SUCCESS;
88+
int32 Stat;
8989

9090
CFE_SB_Default_Qos.Priority = CFE_SB_QOS_LOW_PRIORITY;
9191
CFE_SB_Default_Qos.Reliability = CFE_SB_QOS_LOW_RELIABILITY;
@@ -217,9 +217,8 @@ void CFE_SB_InitPipeTbl(void){
217217
*/
218218
void CFE_SB_InitMsgMap(void){
219219

220-
CFE_SB_MsgKey_Atom_t KeyVal;
221-
222220
#ifdef MESSAGE_FORMAT_IS_CCSDS
221+
CFE_SB_MsgKey_Atom_t KeyVal;
223222

224223
for (KeyVal=0; KeyVal < CFE_SB_MAX_NUMBER_OF_MSG_KEYS; KeyVal++)
225224
{

‎fsw/cfe-core/src/sb/cfe_sb_priv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,9 @@ char *CFE_SB_GetAppTskName(uint32 TaskId,char *FullName){
705705
*/
706706
uint8 CFE_SB_GetPktType(CFE_SB_MsgId_t MsgId)
707707
{
708-
CFE_SB_MsgId_Atom_t Val = MsgId;
709708

710709
#ifdef MESSAGE_FORMAT_IS_CCSDS
710+
CFE_SB_MsgId_Atom_t Val = MsgId;
711711

712712
#ifndef MESSAGE_FORMAT_IS_CCSDS_VER_2
713713
return CFE_TST(Val,12);

‎fsw/cfe-core/src/sb/cfe_sb_priv.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ CFE_SB_MsgKey_t CFE_SB_ConvertMsgIdtoMsgKey(CFE_SB_MsgId_t MsgId);
351351
void CFE_SB_LockSharedData(const char *FuncName, int32 LineNumber);
352352
void CFE_SB_UnlockSharedData(const char *FuncName, int32 LineNumber);
353353
void CFE_SB_ReleaseBuffer (CFE_SB_BufferD_t *bd, CFE_SB_DestinationD_t *dest);
354-
int32 CFE_SB_ReadQueue(CFE_SB_PipeD_t *pd,uint32 TskId,
355-
CFE_SB_TimeOut_t time_out,CFE_SB_BufferD_t **message );
354+
int32 CFE_SB_ReadQueue(CFE_SB_PipeD_t *PipeDscPtr,uint32 TskId,
355+
CFE_SB_TimeOut_t Time_Out,CFE_SB_BufferD_t **Message );
356356
int32 CFE_SB_WriteQueue(CFE_SB_PipeD_t *pd,uint32 TskId,
357357
const CFE_SB_BufferD_t *bd,CFE_SB_MsgId_t MsgId );
358358
CFE_SB_MsgRouteIdx_t CFE_SB_GetRoutingTblIdx(CFE_SB_MsgKey_t MsgKey);
@@ -366,7 +366,7 @@ void CFE_SB_ResetCounters(void);
366366
char *CFE_SB_GetPipeName(CFE_SB_PipeId_t PipeId);
367367
void CFE_SB_SetMsgSeqCnt(CFE_SB_MsgPtr_t MsgPtr,uint32 Count);
368368
char *CFE_SB_GetAppTskName(uint32 TaskId, char* FullName);
369-
CFE_SB_BufferD_t *CFE_SB_GetBufferFromPool(CFE_SB_MsgId_t MsgId, uint16 size);
369+
CFE_SB_BufferD_t *CFE_SB_GetBufferFromPool(CFE_SB_MsgId_t MsgId, uint16 Size);
370370
CFE_SB_BufferD_t *CFE_SB_GetBufferFromCaller(CFE_SB_MsgId_t MsgId, void *Address);
371371
CFE_SB_PipeD_t *CFE_SB_GetPipePtr(CFE_SB_PipeId_t PipeId);
372372
CFE_SB_PipeId_t CFE_SB_GetAvailPipeIdx(void);
@@ -402,8 +402,8 @@ uint32 CFE_SB_RequestToSendEvent(uint32 TaskId, uint32 Bit);
402402
void CFE_SB_FinishSendEvent(uint32 TaskId, uint32 Bit);
403403
CFE_SB_DestinationD_t *CFE_SB_GetDestinationBlk(void);
404404
int32 CFE_SB_PutDestinationBlk(CFE_SB_DestinationD_t *Dest);
405-
int32 CFE_SB_AddDest(CFE_SB_RouteEntry_t *RouteEntry, CFE_SB_DestinationD_t *Dest);
406-
int32 CFE_SB_RemoveDest(CFE_SB_RouteEntry_t *RouteEntry, CFE_SB_DestinationD_t *Dest);
405+
int32 CFE_SB_AddDest(CFE_SB_RouteEntry_t *RouteEntry, CFE_SB_DestinationD_t *NewNode);
406+
int32 CFE_SB_RemoveDest(CFE_SB_RouteEntry_t *RouteEntry, CFE_SB_DestinationD_t *NodeToRemove);
407407

408408

409409
/*****************************************************************************/

‎fsw/cfe-core/src/sb/cfe_sb_task.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ int32 CFE_SB_AppInit(void){
137137

138138
uint32 CfgFileEventsToFilter = 0;
139139
uint32 *TmpPtr = NULL;
140-
int32 Status = CFE_SUCCESS;
140+
int32 Status;
141141

142142
Status = CFE_ES_RegisterApp();
143143

‎fsw/cfe-core/src/sb/cfe_sb_util.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ void CFE_SB_InitMsg(void *MsgPtr,
109109
*/
110110
uint16 CFE_SB_MsgHdrSize(const CFE_SB_Msg_t *MsgPtr)
111111
{
112-
uint16 size;
113112

114113
#ifdef MESSAGE_FORMAT_IS_CCSDS
115114

115+
uint16 size;
116116
const CCSDS_PriHdr_t *HdrPtr;
117117

118118
HdrPtr = (const CCSDS_PriHdr_t *) MsgPtr;

‎fsw/cfe-core/src/tbl/cfe_tbl_api.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int32 CFE_TBL_Register( CFE_TBL_Handle_t *TblHandlePtr,
6262
CFE_TBL_RegistryRec_t *RegRecPtr = NULL;
6363
CFE_TBL_LoadBuff_t *WorkingBufferPtr;
6464
CFE_TBL_CritRegRec_t *CritRegRecPtr = NULL;
65-
int32 Status = CFE_SUCCESS;
65+
int32 Status;
6666
size_t NameLen = 0;
6767
int16 RegIndx = -1;
6868
uint32 ThisAppId;
@@ -516,7 +516,7 @@ int32 CFE_TBL_Register( CFE_TBL_Handle_t *TblHandlePtr,
516516
int32 CFE_TBL_Share( CFE_TBL_Handle_t *TblHandlePtr,
517517
const char *TblName )
518518
{
519-
int32 Status = CFE_SUCCESS;
519+
int32 Status;
520520
uint32 ThisAppId;
521521
int16 RegIndx = CFE_TBL_NOT_FOUND;
522522
CFE_TBL_AccessDescriptor_t *AccessDescPtr = NULL;
@@ -1048,7 +1048,7 @@ int32 CFE_TBL_Update( CFE_TBL_Handle_t TblHandle )
10481048
int32 CFE_TBL_GetAddress( void **TblPtr,
10491049
CFE_TBL_Handle_t TblHandle )
10501050
{
1051-
int32 Status = CFE_SUCCESS;
1051+
int32 Status;
10521052
uint32 ThisAppId;
10531053

10541054
/* Assume failure at returning the table address */
@@ -1124,7 +1124,7 @@ int32 CFE_TBL_GetAddresses( void **TblPtrs[],
11241124
const CFE_TBL_Handle_t TblHandles[] )
11251125
{
11261126
uint16 i;
1127-
int32 Status = CFE_SUCCESS;
1127+
int32 Status;
11281128
uint32 ThisAppId;
11291129

11301130
/* Assume failure at returning the table addresses */
@@ -1203,7 +1203,7 @@ int32 CFE_TBL_ReleaseAddresses( uint16 NumTables,
12031203

12041204
int32 CFE_TBL_Validate( CFE_TBL_Handle_t TblHandle )
12051205
{
1206-
int32 Status = CFE_SUCCESS;
1206+
int32 Status;
12071207
uint32 ThisAppId;
12081208
CFE_TBL_RegistryRec_t *RegRecPtr;
12091209
CFE_TBL_AccessDescriptor_t *AccessDescPtr;
@@ -1416,7 +1416,7 @@ int32 CFE_TBL_Manage( CFE_TBL_Handle_t TblHandle )
14161416

14171417
int32 CFE_TBL_GetStatus( CFE_TBL_Handle_t TblHandle )
14181418
{
1419-
int32 Status = CFE_SUCCESS;
1419+
int32 Status ;
14201420
uint32 ThisAppId;
14211421
CFE_TBL_RegistryRec_t *RegRecPtr;
14221422
CFE_TBL_AccessDescriptor_t *AccessDescPtr;
@@ -1521,7 +1521,7 @@ int32 CFE_TBL_GetInfo( CFE_TBL_Info_t *TblInfoPtr, const char *TblName )
15211521

15221522
int32 CFE_TBL_DumpToBuffer( CFE_TBL_Handle_t TblHandle )
15231523
{
1524-
int32 Status = CFE_SUCCESS;
1524+
int32 Status;
15251525
CFE_TBL_AccessDescriptor_t *AccessDescPtr = NULL;
15261526
CFE_TBL_RegistryRec_t *RegRecPtr = NULL;
15271527
CFE_TBL_DumpControl_t *DumpCtrlPtr = NULL;
@@ -1565,7 +1565,7 @@ int32 CFE_TBL_DumpToBuffer( CFE_TBL_Handle_t TblHandle )
15651565

15661566
int32 CFE_TBL_Modified( CFE_TBL_Handle_t TblHandle )
15671567
{
1568-
int32 Status = CFE_SUCCESS;
1568+
int32 Status;
15691569
CFE_TBL_AccessDescriptor_t *AccessDescPtr = NULL;
15701570
CFE_TBL_RegistryRec_t *RegRecPtr = NULL;
15711571
CFE_TBL_Handle_t AccessIterator;
@@ -1642,7 +1642,7 @@ int32 CFE_TBL_Modified( CFE_TBL_Handle_t TblHandle )
16421642

16431643
int32 CFE_TBL_NotifyByMessage(CFE_TBL_Handle_t TblHandle, CFE_SB_MsgId_t MsgId, uint16 CommandCode, uint32 Parameter)
16441644
{
1645-
int32 Status = CFE_SUCCESS;
1645+
int32 Status;
16461646
CFE_TBL_AccessDescriptor_t *AccessDescPtr = NULL;
16471647
CFE_TBL_RegistryRec_t *RegRecPtr = NULL;
16481648
uint32 ThisAppId;

‎fsw/cfe-core/src/tbl/cfe_tbl_internal.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ int32 CFE_TBL_ValidateAppID(uint32 *AppIdPtr)
377377

378378
int32 CFE_TBL_ValidateAccess(CFE_TBL_Handle_t TblHandle, uint32 *AppIdPtr)
379379
{
380-
int32 Status = CFE_SUCCESS;
380+
int32 Status;
381381

382382
/* Check to make sure App ID is legit */
383383
Status = CFE_TBL_ValidateAppID(AppIdPtr);
@@ -537,7 +537,7 @@ int32 CFE_TBL_RemoveAccessLink(CFE_TBL_Handle_t TblHandle)
537537

538538
int32 CFE_TBL_GetAddressInternal(void **TblPtr, CFE_TBL_Handle_t TblHandle, uint32 ThisAppId)
539539
{
540-
int32 Status = CFE_SUCCESS;
540+
int32 Status;
541541
CFE_TBL_AccessDescriptor_t *AccessDescPtr;
542542
CFE_TBL_RegistryRec_t *RegRecPtr;
543543

@@ -1460,7 +1460,7 @@ void CFE_TBL_UpdateCriticalTblCDS(CFE_TBL_RegistryRec_t *RegRecPtr)
14601460
{
14611461
CFE_TBL_CritRegRec_t *CritRegRecPtr = NULL;
14621462

1463-
int32 Status = CFE_SUCCESS;
1463+
int32 Status;
14641464

14651465
/* Copy an image of the updated table to the CDS for safekeeping */
14661466
Status = CFE_ES_CopyToCDS(RegRecPtr->CDSHandle, RegRecPtr->Buffers[RegRecPtr->ActiveBufferIndex].BufferPtr);

0 commit comments

Comments
 (0)
Please sign in to comment.