Skip to content

Commit 9767113

Browse files
mihai-ignatmarius-alex-tache
authored andcommitted
[NXP][k32w0] Remove code that generates errors in debug builds for k32w0
1 parent 2eab729 commit 9767113

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

src/platform/nxp/k32w/common/OTAImageProcessorImpl.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ CHIP_ERROR OTAImageProcessorImpl::ReleaseBlock()
407407

408408
void OTAImageProcessorImpl::FetchNextData(uint32_t context)
409409
{
410-
CHIP_ERROR error = CHIP_NO_ERROR;
411410
auto * imageProcessor = &OTAImageProcessorImpl::GetDefaultInstance();
412411
SystemLayer().ScheduleLambda([imageProcessor] {
413412
if (imageProcessor->mDownloader)

src/platform/nxp/k32w/k32w0/ConfigurationManagerImpl.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ CHIP_ERROR ConfigurationManagerImpl::DetermineBootReason(uint8_t rebootCause)
276276

277277
void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg)
278278
{
279-
CHIP_ERROR err;
280-
281279
ChipLogProgress(DeviceLayer, "Performing factory reset");
282280

283281
K32WConfig::FactoryResetConfig();

src/platform/nxp/k32w/k32w0/RamStorage.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ CHIP_ERROR RamStorageKey::Delete()
7070

7171
CHIP_ERROR RamStorage::Init(uint16_t aInitialSize, bool extendedSearch)
7272
{
73-
CHIP_ERROR err;
74-
7573
mBuffer = getRamBuffer(mPdmId, aInitialSize, extendedSearch);
7674
mExtendedSearch = extendedSearch;
7775

src/platform/nxp/k32w/k32w0/crypto/CHIPCryptoPALNXPUltrafastP256.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ CHIP_ERROR P256Keypair::Initialize(ECPKeyTarget key_target)
665665
}
666666
keypair = nullptr;
667667
mInitialized = true;
668-
exit:
668+
669669
_log_mbedTLS_error(result);
670670
return error;
671671
}
@@ -929,8 +929,6 @@ CHIP_ERROR Spake2p_P256_SHA256_HKDF_HMAC::FEGenerate(void * fe)
929929

930930
result = ECP256_GenerateKeyPair(&PublicKey, &PrivateKey, NULL);
931931

932-
Spake2p_Context * context = to_inner_spake2p_context(&mSpake2pContext);
933-
934932
VerifyOrExit(result == gSecEcp256Success_c, error = CHIP_ERROR_INTERNAL);
935933

936934
ecp_coordinate_copy((uint8_t *) fe, (const uint8_t *) &PrivateKey);
@@ -1040,7 +1038,6 @@ CHIP_ERROR Spake2p_P256_SHA256_HKDF_HMAC::ComputeL(uint8_t * Lout, size_t * L_le
10401038
memcpy(p, (uint8_t *) &gen_point, SEC_ECP256_COORDINATE_LEN * 2);
10411039
} while (0);
10421040

1043-
exit:
10441041
_log_mbedTLS_error(result);
10451042
return error;
10461043
}

0 commit comments

Comments
 (0)