Skip to content

Commit d83c06e

Browse files
authored
Batch project-chip#26 nodiscard errors: platform-specific src: silabs (project-chip#42089)
1 parent a2f1563 commit d83c06e

24 files changed

+120
-119
lines changed

src/platform/silabs/ConfigurationManagerImpl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ CHIP_ERROR ConfigurationManagerImpl::Init()
6666
err = GenericConfigurationManagerImpl<SilabsConfig>::Init();
6767
SuccessOrExit(err);
6868

69-
IncreaseBootCount();
69+
TEMPORARY_RETURN_IGNORED IncreaseBootCount();
7070
err = CHIP_NO_ERROR;
7171

7272
exit:
@@ -81,7 +81,7 @@ bool ConfigurationManagerImpl::CanFactoryReset()
8181

8282
void ConfigurationManagerImpl::InitiateFactoryReset()
8383
{
84-
PlatformMgr().ScheduleWork(DoFactoryReset);
84+
TEMPORARY_RETURN_IGNORED PlatformMgr().ScheduleWork(DoFactoryReset);
8585
}
8686

8787
CHIP_ERROR ConfigurationManagerImpl::GetRebootCount(uint32_t & rebootCount)
@@ -95,7 +95,7 @@ CHIP_ERROR ConfigurationManagerImpl::IncreaseBootCount(void)
9595

9696
if (SilabsConfig::ConfigValueExists(SilabsConfig::kConfigKey_BootCount))
9797
{
98-
GetRebootCount(bootCount);
98+
TEMPORARY_RETURN_IGNORED GetRebootCount(bootCount);
9999
}
100100

101101
return SilabsConfig::WriteConfigValue(SilabsConfig::kConfigKey_BootCount, bootCount + 1);
@@ -287,7 +287,7 @@ void ConfigurationManagerImpl::ClearThreadStack()
287287
{
288288
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
289289
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT
290-
ThreadStackMgr().ClearAllSrpHostAndServices();
290+
TEMPORARY_RETURN_IGNORED ThreadStackMgr().ClearAllSrpHostAndServices();
291291
#endif // CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT
292292
ChipLogProgress(DeviceLayer, "Clearing Thread provision");
293293
ThreadStackMgr().ErasePersistentInfo();

src/platform/silabs/ConnectivityManagerImpl_WIFI.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ bool ConnectivityManagerImpl::_IsWiFiStationEnabled(void)
154154

155155
CHIP_ERROR ConnectivityManagerImpl::_SetWiFiStationMode(ConnectivityManager::WiFiStationMode val)
156156
{
157-
DeviceLayer::SystemLayer().ScheduleWork(DriveStationState, NULL);
157+
TEMPORARY_RETURN_IGNORED DeviceLayer::SystemLayer().ScheduleWork(DriveStationState, NULL);
158158

159159
if (mWiFiStationMode != val)
160160
{
@@ -179,7 +179,7 @@ void ConnectivityManagerImpl::_ClearWiFiStationProvision(void)
179179
{
180180
WifiInterface::GetInstance().ClearWifiCredentials();
181181

182-
DeviceLayer::SystemLayer().ScheduleWork(DriveStationState, NULL);
182+
TEMPORARY_RETURN_IGNORED DeviceLayer::SystemLayer().ScheduleWork(DriveStationState, NULL);
183183
}
184184
}
185185

@@ -197,7 +197,7 @@ void ConnectivityManagerImpl::_OnWiFiStationProvisionChange()
197197
{
198198
// Schedule a call to the DriveStationState method to adjust the station state as needed.
199199
ChipLogProgress(DeviceLayer, "_ON WIFI PROVISION CHANGE");
200-
DeviceLayer::SystemLayer().ScheduleWork(DriveStationState, NULL);
200+
TEMPORARY_RETURN_IGNORED DeviceLayer::SystemLayer().ScheduleWork(DriveStationState, NULL);
201201
}
202202

203203
#if CHIP_CONFIG_ENABLE_ICD_SERVER

src/platform/silabs/DiagnosticDataProviderImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetNetworkInterfaces(NetworkInterface **
223223
ifp->offPremiseServicesReachableIPv4.SetNull();
224224
ifp->offPremiseServicesReachableIPv6.SetNull();
225225

226-
ThreadStackMgrImpl().GetPrimary802154MACAddress(ifp->MacAddress);
226+
TEMPORARY_RETURN_IGNORED ThreadStackMgrImpl().GetPrimary802154MACAddress(ifp->MacAddress);
227227
ifp->hardwareAddress = ByteSpan(ifp->MacAddress, kMaxHardwareAddrSize);
228228

229229
// The Thread implementation has only 1 interface and is IPv6-only
@@ -248,7 +248,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetNetworkInterfaces(NetworkInterface **
248248
NetworkInterface * head = NULL;
249249
for (Inet::InterfaceIterator interfaceIterator; interfaceIterator.HasCurrent(); interfaceIterator.Next())
250250
{
251-
interfaceIterator.GetInterfaceName(ifp->Name, Inet::InterfaceId::kMaxIfNameLength);
251+
TEMPORARY_RETURN_IGNORED interfaceIterator.GetInterfaceName(ifp->Name, Inet::InterfaceId::kMaxIfNameLength);
252252
ifp->name = CharSpan::fromCharString(ifp->Name);
253253
ifp->isOperational = true;
254254
Inet::InterfaceType interfaceType;

src/platform/silabs/KeyValueStoreManagerImpl.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bool KeyValueStoreManagerImpl::IsValidKvsNvm3Key(uint32_t nvm3Key) const
8383
uint16_t KeyValueStoreManagerImpl::hashKvsKeyString(const char * key) const
8484
{
8585
uint8_t hash256[Crypto::kSHA256_Hash_Length] = { 0 };
86-
Crypto::Hash_SHA256(reinterpret_cast<const uint8_t *>(key), strlen(key), hash256);
86+
TEMPORARY_RETURN_IGNORED Crypto::Hash_SHA256(reinterpret_cast<const uint8_t *>(key), strlen(key), hash256);
8787

8888
uint16_t hash16 = 0, i = 0;
8989

@@ -172,8 +172,8 @@ void KeyValueStoreManagerImpl::ForceKeyMapSave()
172172

173173
void KeyValueStoreManagerImpl::OnScheduledKeyMapSave(System::Layer * systemLayer, void * appState)
174174
{
175-
SilabsConfig::WriteConfigValueBin(SilabsConfig::kConfigKey_KvsStringKeyMap, reinterpret_cast<const uint8_t *>(mKvsKeyMap),
176-
sizeof(mKvsKeyMap));
175+
TEMPORARY_RETURN_IGNORED SilabsConfig::WriteConfigValueBin(SilabsConfig::kConfigKey_KvsStringKeyMap,
176+
reinterpret_cast<const uint8_t *>(mKvsKeyMap), sizeof(mKvsKeyMap));
177177
}
178178

179179
void KeyValueStoreManagerImpl::ScheduleKeyMapSave(void)
@@ -182,7 +182,7 @@ void KeyValueStoreManagerImpl::ScheduleKeyMapSave(void)
182182
During commissioning, the key map will be modified multiples times subsequently.
183183
Commit the key map in nvm once it as stabilized.
184184
*/
185-
SystemLayer().StartTimer(
185+
TEMPORARY_RETURN_IGNORED SystemLayer().StartTimer(
186186
std::chrono::duration_cast<System::Clock::Timeout>(System::Clock::Seconds32(SL_KVS_SAVE_DELAY_SECONDS)),
187187
KeyValueStoreManagerImpl::OnScheduledKeyMapSave, NULL);
188188
}
@@ -267,7 +267,7 @@ void KeyValueStoreManagerImpl::ErasePartition(void)
267267
// Iterate over all the Matter Kvs nvm3 records and delete each one...
268268
for (uint32_t nvm3Key = SilabsConfig::kMinConfigKey_MatterKvs; nvm3Key <= SilabsConfig::kConfigKey_KvsLastKeySlot; nvm3Key++)
269269
{
270-
SilabsConfig::ClearConfigValue(nvm3Key);
270+
TEMPORARY_RETURN_IGNORED SilabsConfig::ClearConfigValue(nvm3Key);
271271
}
272272

273273
memset(mKvsKeyMap, 0, sizeof(mKvsKeyMap));
@@ -308,8 +308,9 @@ void KeyValueStoreManagerImpl::KvsMapMigration(void)
308308
VerifyOrDie(prefixedData != nullptr);
309309
memcpy(prefixedData, keyString, keyStringLen);
310310

311-
SilabsConfig::ReadConfigValueBin(nvm3Key, prefixedData + keyStringLen, dataLen, readlen);
312-
SilabsConfig::WriteConfigValueBin(nvm3Key, prefixedData, keyStringLen + dataLen);
311+
TEMPORARY_RETURN_IGNORED SilabsConfig::ReadConfigValueBin(nvm3Key, prefixedData + keyStringLen, dataLen,
312+
readlen);
313+
TEMPORARY_RETURN_IGNORED SilabsConfig::WriteConfigValueBin(nvm3Key, prefixedData, keyStringLen + dataLen);
313314
mKvsKeyMap[i] = KeyValueStoreMgrImpl().hashKvsKeyString(keyString);
314315
Platform::MemoryFree(prefixedData);
315316
}

src/platform/silabs/MigrationManager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static migrationData_t migrationTable[] = {
5656
void MigrationManager::ApplyMigrations()
5757
{
5858
uint32_t lastMigationGroupDone = 0;
59-
SilabsConfig::ReadConfigValue(SilabsConfig::kConfigKey_MigrationCounter, lastMigationGroupDone);
59+
TEMPORARY_RETURN_IGNORED SilabsConfig::ReadConfigValue(SilabsConfig::kConfigKey_MigrationCounter, lastMigationGroupDone);
6060

6161
uint32_t completedMigrationGroup = lastMigationGroupDone;
6262
for (uint32_t i = 0; i < MATTER_ARRAY_SIZE(migrationTable); i++)
@@ -67,7 +67,7 @@ void MigrationManager::ApplyMigrations()
6767
completedMigrationGroup = std::max(migrationTable[i].migrationGroup, completedMigrationGroup);
6868
}
6969
}
70-
SilabsConfig::WriteConfigValue(SilabsConfig::kConfigKey_MigrationCounter, completedMigrationGroup);
70+
TEMPORARY_RETURN_IGNORED SilabsConfig::WriteConfigValue(SilabsConfig::kConfigKey_MigrationCounter, completedMigrationGroup);
7171
}
7272

7373
void MigrationManager::MigrateUint16(uint32_t old_key, uint32_t new_key)
@@ -78,7 +78,7 @@ void MigrationManager::MigrateUint16(uint32_t old_key, uint32_t new_key)
7878
if (CHIP_NO_ERROR == SilabsConfig::WriteConfigValue(new_key, value))
7979
{
8080
// Free memory of old key location
81-
SilabsConfig::ClearConfigValue(old_key);
81+
TEMPORARY_RETURN_IGNORED SilabsConfig::ClearConfigValue(old_key);
8282
}
8383
}
8484
}
@@ -91,7 +91,7 @@ void MigrationManager::MigrateUint32(uint32_t old_key, uint32_t new_key)
9191
if (CHIP_NO_ERROR == SilabsConfig::WriteConfigValue(new_key, value))
9292
{
9393
// Free memory of old key location
94-
SilabsConfig::ClearConfigValue(old_key);
94+
TEMPORARY_RETURN_IGNORED SilabsConfig::ClearConfigValue(old_key);
9595
}
9696
}
9797
}

src/platform/silabs/NetworkCommissioningWiFiDriver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ CHIP_ERROR SlWiFiDriver::Init(NetworkStatusChangeCallback * networkStatusChangeC
7171
mSavedNetwork.ssidLen = ssidLen;
7272
mStagingNetwork = mSavedNetwork;
7373
#endif
74-
ConnectWiFiNetwork(mSavedNetwork.ssid, ssidLen, mSavedNetwork.credentials, credentialsLen);
74+
TEMPORARY_RETURN_IGNORED ConnectWiFiNetwork(mSavedNetwork.ssid, ssidLen, mSavedNetwork.credentials, credentialsLen);
7575
return err;
7676
}
7777

@@ -202,7 +202,7 @@ void SlWiFiDriver::OnConnectWiFiNetwork()
202202
{
203203
if (mpConnectCallback)
204204
{
205-
CommitConfiguration();
205+
TEMPORARY_RETURN_IGNORED CommitConfiguration();
206206
mpConnectCallback->OnResult(Status::kSuccess, CharSpan(), 0);
207207
mpConnectCallback = nullptr;
208208
}
@@ -299,13 +299,13 @@ void SlWiFiDriver::OnScanWiFiNetworkDone(wfx_wifi_scan_result_t * aScanResult)
299299
if (mScanResponseIter.Count() == 0)
300300
{
301301
// if there is no network found, return kNetworkNotFound
302-
DeviceLayer::SystemLayer().ScheduleLambda([nwDriver]() {
302+
TEMPORARY_RETURN_IGNORED DeviceLayer::SystemLayer().ScheduleLambda([nwDriver]() {
303303
nwDriver->mpScanCallback->OnFinished(NetworkCommissioning::Status::kNetworkNotFound, CharSpan(), nullptr);
304304
nwDriver->mpScanCallback = nullptr;
305305
});
306306
return;
307307
}
308-
DeviceLayer::SystemLayer().ScheduleLambda([nwDriver]() {
308+
TEMPORARY_RETURN_IGNORED DeviceLayer::SystemLayer().ScheduleLambda([nwDriver]() {
309309
nwDriver->mpScanCallback->OnFinished(NetworkCommissioning::Status::kSuccess, CharSpan(), &mScanResponseIter);
310310
nwDriver->mpScanCallback = nullptr;
311311
});

src/platform/silabs/PlatformManagerImpl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ CHIP_ERROR PlatformManagerImpl::_InitChipStack(void)
112112
SuccessOrExit(err);
113113

114114
// Start timer to increment TotalOperationalHours every hour
115-
SystemLayer().StartTimer(System::Clock::Seconds32(kSecondsPerHour), UpdateOperationalHours, NULL);
115+
TEMPORARY_RETURN_IGNORED SystemLayer().StartTimer(System::Clock::Seconds32(kSecondsPerHour), UpdateOperationalHours, NULL);
116116

117117
exit:
118118
return err;
@@ -124,14 +124,14 @@ void PlatformManagerImpl::UpdateOperationalHours(System::Layer * systemLayer, vo
124124

125125
if (ConfigurationMgr().GetTotalOperationalHours(totalOperationalHours) == CHIP_NO_ERROR)
126126
{
127-
ConfigurationMgr().StoreTotalOperationalHours(totalOperationalHours + 1);
127+
TEMPORARY_RETURN_IGNORED ConfigurationMgr().StoreTotalOperationalHours(totalOperationalHours + 1);
128128
}
129129
else
130130
{
131131
ChipLogError(DeviceLayer, "Failed to get total operational hours of the Node");
132132
}
133133

134-
SystemLayer().StartTimer(System::Clock::Seconds32(kSecondsPerHour), UpdateOperationalHours, NULL);
134+
TEMPORARY_RETURN_IGNORED SystemLayer().StartTimer(System::Clock::Seconds32(kSecondsPerHour), UpdateOperationalHours, NULL);
135135
}
136136

137137
void PlatformManagerImpl::_Shutdown()

src/platform/silabs/SiWx/CHIPCryptoPALTinyCrypt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ CHIP_ERROR P256Keypair::Serialize(P256SerializedKeypair & output) const
654654
bbuf.Put(privkey, sizeof(privkey));
655655
VerifyOrExit(bbuf.Fit(), error = CHIP_ERROR_BUFFER_TOO_SMALL);
656656

657-
output.SetLength(bbuf.Needed());
657+
TEMPORARY_RETURN_IGNORED output.SetLength(bbuf.Needed());
658658

659659
exit:
660660
memset(privkey, 0, sizeof(privkey));
@@ -757,7 +757,7 @@ CHIP_ERROR VerifyCertificateSigningRequest(const uint8_t * csr_buf, size_t csr_l
757757

758758
VerifyOrExit(error == CHIP_NO_ERROR, error = CHIP_ERROR_INVALID_ARGUMENT);
759759
VerifyOrExit(out_raw_sig_span.size() == (kP256_FE_Length * 2), error = CHIP_ERROR_INTERNAL);
760-
signature.SetLength(out_raw_sig_span.size());
760+
TEMPORARY_RETURN_IGNORED signature.SetLength(out_raw_sig_span.size());
761761

762762
// Verify the signature using the public key
763763
error = pubkey.ECDSA_validate_msg_signature(csr.CHIP_CRYPTO_PAL_PRIVATE_X509(cri).CHIP_CRYPTO_PAL_PRIVATE_X509(p),

src/platform/silabs/SiWx/OTAImageProcessorImpl.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,24 @@ CHIP_ERROR OTAImageProcessorImpl::Init(OTADownloader * downloader)
6868

6969
CHIP_ERROR OTAImageProcessorImpl::PrepareDownload()
7070
{
71-
PlatformMgr().ScheduleWork(HandlePrepareDownload, reinterpret_cast<intptr_t>(this));
71+
TEMPORARY_RETURN_IGNORED PlatformMgr().ScheduleWork(HandlePrepareDownload, reinterpret_cast<intptr_t>(this));
7272
return CHIP_NO_ERROR;
7373
}
7474

7575
CHIP_ERROR OTAImageProcessorImpl::Finalize()
7676
{
77-
PlatformMgr().ScheduleWork(HandleFinalize, reinterpret_cast<intptr_t>(this));
77+
TEMPORARY_RETURN_IGNORED PlatformMgr().ScheduleWork(HandleFinalize, reinterpret_cast<intptr_t>(this));
7878
return CHIP_NO_ERROR;
7979
}
8080
CHIP_ERROR OTAImageProcessorImpl::Apply()
8181
{
82-
PlatformMgr().ScheduleWork(HandleApply, reinterpret_cast<intptr_t>(this));
82+
TEMPORARY_RETURN_IGNORED PlatformMgr().ScheduleWork(HandleApply, reinterpret_cast<intptr_t>(this));
8383
return CHIP_NO_ERROR;
8484
}
8585

8686
CHIP_ERROR OTAImageProcessorImpl::Abort()
8787
{
88-
PlatformMgr().ScheduleWork(HandleAbort, reinterpret_cast<intptr_t>(this));
88+
TEMPORARY_RETURN_IGNORED PlatformMgr().ScheduleWork(HandleAbort, reinterpret_cast<intptr_t>(this));
8989
return CHIP_NO_ERROR;
9090
}
9191

@@ -103,7 +103,7 @@ CHIP_ERROR OTAImageProcessorImpl::ProcessBlock(ByteSpan & block)
103103
ChipLogError(SoftwareUpdate, "Cannot set block data: %" CHIP_ERROR_FORMAT, err.Format());
104104
}
105105

106-
PlatformMgr().ScheduleWork(HandleProcessBlock, reinterpret_cast<intptr_t>(this));
106+
TEMPORARY_RETURN_IGNORED PlatformMgr().ScheduleWork(HandleProcessBlock, reinterpret_cast<intptr_t>(this));
107107
return CHIP_NO_ERROR;
108108
}
109109

@@ -166,10 +166,10 @@ void OTAImageProcessorImpl::HandlePrepareDownload(intptr_t context)
166166

167167
#if CHIP_CONFIG_ENABLE_ICD_SERVER
168168
// Setting the device in high performance - no-sleep mode during OTA tranfer
169-
WifiSleepManager::GetInstance().RequestHighPerformanceWithTransition();
169+
TEMPORARY_RETURN_IGNORED WifiSleepManager::GetInstance().RequestHighPerformanceWithTransition();
170170
#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER*/
171171

172-
imageProcessor->mDownloader->OnPreparedForDownload(CHIP_NO_ERROR);
172+
TEMPORARY_RETURN_IGNORED imageProcessor->mDownloader->OnPreparedForDownload(CHIP_NO_ERROR);
173173
}
174174

175175
void OTAImageProcessorImpl::HandleFinalize(intptr_t context)
@@ -201,11 +201,11 @@ void OTAImageProcessorImpl::HandleFinalize(intptr_t context)
201201
}
202202
}
203203
}
204-
imageProcessor->ReleaseBlock();
204+
TEMPORARY_RETURN_IGNORED imageProcessor->ReleaseBlock();
205205

206206
#if CHIP_CONFIG_ENABLE_ICD_SERVER
207207
// Setting the device back to power save mode when transfer is completed successfully
208-
WifiSleepManager::GetInstance().RemoveHighPerformanceRequest();
208+
TEMPORARY_RETURN_IGNORED WifiSleepManager::GetInstance().RemoveHighPerformanceRequest();
209209
#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER*/
210210

211211
ChipLogProgress(SoftwareUpdate, "OTA image downloaded successfully");
@@ -222,7 +222,7 @@ void OTAImageProcessorImpl::HandleApply(intptr_t context)
222222

223223
#if CHIP_CONFIG_ENABLE_ICD_SERVER
224224
// Setting the device is in high performace - no-sleepy mode before soft reset as soft reset is not happening in sleep mode
225-
WifiSleepManager::GetInstance().RequestHighPerformanceWithTransition();
225+
TEMPORARY_RETURN_IGNORED WifiSleepManager::GetInstance().RequestHighPerformanceWithTransition();
226226
#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER*/
227227

228228
if (mReset)
@@ -231,7 +231,7 @@ void OTAImageProcessorImpl::HandleApply(intptr_t context)
231231
// send system reset request to reset the MCU and upgrade the m4 image
232232
ChipLogProgress(SoftwareUpdate, "SoC Soft Reset initiated!");
233233
// Write that we are rebooting after a software update and reboot the device
234-
SilabsConfig::WriteConfigValue(SilabsConfig::kConfigKey_MatterUpdateReboot, true);
234+
TEMPORARY_RETURN_IGNORED SilabsConfig::WriteConfigValue(SilabsConfig::kConfigKey_MatterUpdateReboot, true);
235235
GetPlatform().SoftwareReset();
236236
}
237237
}
@@ -246,11 +246,11 @@ void OTAImageProcessorImpl::HandleAbort(intptr_t context)
246246

247247
#if CHIP_CONFIG_ENABLE_ICD_SERVER
248248
// Setting the device back to power save mode when transfer is aborted in the middle
249-
WifiSleepManager::GetInstance().RemoveHighPerformanceRequest();
249+
TEMPORARY_RETURN_IGNORED WifiSleepManager::GetInstance().RemoveHighPerformanceRequest();
250250
#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER*/
251251

252252
// Not clearing the image storage area as it is done during each write
253-
imageProcessor->ReleaseBlock();
253+
TEMPORARY_RETURN_IGNORED imageProcessor->ReleaseBlock();
254254
}
255255

256256
void OTAImageProcessorImpl::HandleProcessBlock(intptr_t context)
@@ -320,7 +320,7 @@ void OTAImageProcessorImpl::HandleProcessBlock(intptr_t context)
320320
imageProcessor->mParams.downloadedBytes += kAlignmentBytes;
321321
}
322322
}
323-
imageProcessor->mDownloader->FetchNextData();
323+
TEMPORARY_RETURN_IGNORED imageProcessor->mDownloader->FetchNextData();
324324
}
325325

326326
CHIP_ERROR OTAImageProcessorImpl::ProcessHeader(ByteSpan & block)
@@ -354,7 +354,7 @@ CHIP_ERROR OTAImageProcessorImpl::SetBlock(ByteSpan & block)
354354
// Allocate memory for block data if we don't have enough already
355355
if (mBlock.size() < block.size())
356356
{
357-
ReleaseBlock();
357+
TEMPORARY_RETURN_IGNORED ReleaseBlock();
358358

359359
mBlock = MutableByteSpan(static_cast<uint8_t *>(chip::Platform::MemoryAlloc(block.size())), block.size());
360360
if (mBlock.data() == nullptr)

0 commit comments

Comments
 (0)