@@ -312,10 +312,9 @@ CFE_Status_t CS_ComputeApp(CS_Res_App_Table_Entry_t *ResultsEntry, uint32 *Compu
312
312
int32 NumBytesRemainingCycles = 0 ;
313
313
uint32 NewChecksumValue = 0 ;
314
314
CFE_Status_t Status = CFE_SUCCESS ;
315
- CFE_Status_t Result ;
316
- CFE_Status_t ResultGetResourceID = CS_ERROR ;
317
- CFE_Status_t ResultGetResourceInfo = CS_ERROR ;
318
- bool ResultAddressValid = false;
315
+ CFE_Status_t ResultGetResourceID = CS_ERROR ;
316
+ CFE_Status_t ResultGetResourceInfo = CS_ERROR ;
317
+ bool ResultAddressValid = false;
319
318
320
319
/* variables to get applications address */
321
320
CFE_ResourceId_t ResourceID = CFE_RESOURCEID_UNDEFINED ;
@@ -332,37 +331,34 @@ CFE_Status_t CS_ComputeApp(CS_Res_App_Table_Entry_t *ResultsEntry, uint32 *Compu
332
331
/* Also check for a matching library name */
333
332
ResultGetResourceID = CFE_ES_GetLibIDByName ((CFE_ES_LibId_t * )& ResourceID , ResultsEntry -> Name );
334
333
}
335
- Result = ResultGetResourceID ;
336
334
337
- if (Result == CFE_SUCCESS )
335
+ if (ResultGetResourceID == CFE_SUCCESS )
338
336
{
339
337
/* We got a valid ResourceID, so get the Resource info */
340
338
341
339
ResultGetResourceInfo = CFE_ES_GetModuleInfo (& AppInfo , ResourceID );
342
- Result = ResultGetResourceInfo ;
343
340
}
344
341
345
- if (Result == CFE_SUCCESS )
342
+ if (ResultGetResourceInfo == CFE_SUCCESS )
346
343
{
347
344
/* We got a valid ResourceID and good App info, so check the for valid addresses */
348
345
349
346
if (AppInfo .AddressesAreValid == false)
350
347
{
351
348
CFE_EVS_SendEvent (CS_COMPUTE_APP_PLATFORM_DBG_EID , CFE_EVS_EventType_DEBUG ,
352
349
"CS cannot get a valid address for %s, due to the platform" , ResultsEntry -> Name );
353
- Result = CS_ERROR ;
350
+ ResultGetResourceInfo = CS_ERROR ;
354
351
}
355
352
else
356
353
{
357
354
/* Push in the data from the module info */
358
355
ResultsEntry -> NumBytesToChecksum = AppInfo .CodeSize ;
359
356
ResultsEntry -> StartAddress = AppInfo .CodeAddress ;
360
- Result = CFE_SUCCESS ;
361
357
ResultAddressValid = true;
362
358
}
363
359
}
364
360
365
- if (Result == CFE_SUCCESS )
361
+ if (ResultGetResourceInfo == CFE_SUCCESS )
366
362
{
367
363
/* We got valid ResourceID, good info, and valid addresses, so run the checksum */
368
364
0 commit comments