diff --git a/examples/platforms/cc1352/radio.c b/examples/platforms/cc1352/radio.c index 715afeba1..28f7a1829 100644 --- a/examples/platforms/cc1352/radio.c +++ b/examples/platforms/cc1352/radio.c @@ -1245,6 +1245,7 @@ otError otPlatRadioEnable(otInstance *aInstance) GPIO_writeDio(IOID_30, 0); sState = cc1352_stateSleep; + error = OT_ERROR_NONE; } exit: diff --git a/examples/platforms/cc2650/radio.c b/examples/platforms/cc2650/radio.c index 49ee8b1c5..26411cde1 100644 --- a/examples/platforms/cc2650/radio.c +++ b/examples/platforms/cc2650/radio.c @@ -1170,6 +1170,7 @@ otError otPlatRadioEnable(otInstance *aInstance) otEXPECT_ACTION(rfCorePowerOn() == CMDSTA_Done, error = OT_ERROR_FAILED); otEXPECT_ACTION(rfCoreSendEnableCmd() == DONE_OK, error = OT_ERROR_FAILED); sState = cc2650_stateSleep; + error = OT_ERROR_NONE; } exit: diff --git a/examples/platforms/cc2652/radio.c b/examples/platforms/cc2652/radio.c index 2d2422cf5..48e58370f 100644 --- a/examples/platforms/cc2652/radio.c +++ b/examples/platforms/cc2652/radio.c @@ -1225,6 +1225,7 @@ otError otPlatRadioEnable(otInstance *aInstance) otEXPECT_ACTION(rfCoreSendEnableCmd() == DONE_OK, error = OT_ERROR_FAILED); sState = cc2652_stateSleep; + error = OT_ERROR_NONE; } exit: diff --git a/src/core/meshcop/dataset.cpp b/src/core/meshcop/dataset.cpp index 6b9ba3b79..e8899081d 100644 --- a/src/core/meshcop/dataset.cpp +++ b/src/core/meshcop/dataset.cpp @@ -48,7 +48,7 @@ namespace ot { namespace MeshCoP { -Dataset::Dataset(const Tlv::Type aType) +Dataset::Dataset(Tlv::Type aType) : mUpdateTime(0) , mLength(0) , mType(aType) diff --git a/src/core/meshcop/dataset_local.cpp b/src/core/meshcop/dataset_local.cpp index d93a4be50..7b150f293 100644 --- a/src/core/meshcop/dataset_local.cpp +++ b/src/core/meshcop/dataset_local.cpp @@ -50,7 +50,7 @@ namespace ot { namespace MeshCoP { -DatasetLocal::DatasetLocal(Instance &aInstance, const Tlv::Type aType) +DatasetLocal::DatasetLocal(Instance &aInstance, Tlv::Type aType) : InstanceLocator(aInstance) , mUpdateTime(0) , mType(aType)