Skip to content

Commit 27171d6

Browse files
Removed memset wfx_wifi_provision_t as it is initialized while declaring
1 parent f9a74e7 commit 27171d6

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/platform/silabs/NetworkCommissioningWiFiDriver.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ CHIP_ERROR SlWiFiDriver::ConnectWiFiNetwork(const char * ssid, uint8_t ssidLen,
150150

151151
// Set the wifi configuration
152152
wfx_wifi_provision_t wifiConfig;
153-
memset(&wifiConfig, 0, sizeof(wifiConfig));
154153

155154
VerifyOrReturnError(ssidLen <= WFX_MAX_SSID_LENGTH, CHIP_ERROR_BUFFER_TOO_SMALL);
156155
memcpy(wifiConfig.ssid, ssid, ssidLen);

src/platform/silabs/wifi/wiseconnect-abstraction/WiseconnectInterfaceAbstraction.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ bool wfx_get_wifi_provision(wfx_wifi_provision_t * wifiConfig)
141141
***********************************************************************/
142142
void wfx_clear_wifi_provision(void)
143143
{
144-
memset(&wfx_rsi.sec, 0, sizeof(wfx_rsi.sec));
145144
wfx_rsi.dev_state.Clear(WifiState::kStationProvisioned);
146145
ChipLogProgress(DeviceLayer, "Clear WiFi Provision");
147146
}

0 commit comments

Comments
 (0)