You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I suspect there were code changes that made the check redundant/pointless since RegUpdateStatus only gets set if Status == CFE_SUCCESS before this point, so there's no way for it to not be success and for Status to also not be success.
443 [ + + ]: 14 : if (RegUpdateStatus != CFE_SUCCESS)
444 : : {
445 : 2 : CFE_ES_WriteToSysLog("%s: Failed to update CDS Registry (Stat=0x%08X)\n", __func__,
446 : : (unsigned int)RegUpdateStatus);
447 : :
448 : : /*
449 : : * Return failure only if this was the primary error,
450 : : * do not overwrite a preexisting error.
451 : : */
452 [ + - ]: 2 : if (Status == CFE_SUCCESS)
453 : : {
454 : 2 : Status = RegUpdateStatus;
455 : : }
456 : : }
Is your feature request related to a problem? Please describe.
I suspect there were code changes that made the check redundant/pointless since RegUpdateStatus only gets set if Status == CFE_SUCCESS before this point, so there's no way for it to not be success and for Status to also not be success.
here:
cFE/modules/es/fsw/src/cfe_es_cds.c
Lines 443 to 456 in e5d4ed9
Describe the solution you'd like
Really collapses back down into just one status... no point for two.
Describe alternatives you've considered
None
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: