Skip to content

Commit 6f4c845

Browse files
committed
comments fix
1 parent e3c91e1 commit 6f4c845

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

source/AdvSecurityDml/cosa_adv_security_dml.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3112,9 +3112,12 @@ AdvanceSecurityUserSpace_RFC_SetParamBoolValue
31123112
if(bValue == g_pAdvSecAgent->pAdvSecUserSpace_RFC->bEnable)
31133113
return TRUE;
31143114
if( bValue )
3115-
returnStatus = CosaAdvSecUserSpaceInit(g_pAdvSecAgent->pAdvSecUserSpace_RFC);
3115+
returnStatus = CosaAdvSecUserSpaceInit(g_pAdvSecAgent->pAdvSecUserSpace_RFC);
31163116
else
3117-
returnStatus = CosaAdvSecUserSpaceDeInit(g_pAdvSecAgent->pAdvSecUserSpace_RFC);
3117+
{
3118+
CcspTraceInfo(("AdvSecUserSpace_RFC is defaulted to TRUE, cannot be set to FALSE \n"));
3119+
return FALSE;
3120+
}
31183121

31193122
if ( returnStatus != ANSC_STATUS_SUCCESS )
31203123
{

source/AdvSecurityDml/cosa_adv_security_internal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,8 @@ CosaAdvSecApplyRfcDefaultTrue
16291629
ret = CosaSetSysCfgUlong(setting, 1);
16301630
if (ret != ANSC_STATUS_SUCCESS)
16311631
{
1632-
CcspTraceError(("%s: syscfg_set failure\n", __FUNCTION__));
1632+
CcspTraceError(("%s: %s default-to-true persist failed\n", __FUNCTION__, featureLogName));
1633+
return ret;
16331634
}
16341635
*pEnable = TRUE;
16351636
CcspTraceInfo(("%s:TRUE\n", featureLogName));

0 commit comments

Comments
 (0)