!785 clear codex framework drivers

Merge pull request !785 from 王有刚/OpenHarmony-3.1-Release
This commit is contained in:
openharmony_ci
2022-03-15 12:13:03 +00:00
committed by Gitee
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -248,6 +248,7 @@ struct EthConfig *GetEthConfig(const struct DeviceResourceNode *node)
if (ParseConfigFromProperty(node, config) != HDF_SUCCESS) {
HDF_LOGE("%s failed to parse config from property", __func__);
OsalMemFree(config);
return NULL;
}
return config;
@@ -289,4 +290,4 @@ int32_t ReleaseEthDevice(struct EthDevice *ethDevice)
OsalMemFree(ethDevice);
OsalMemFree(data);
return HDF_SUCCESS;
}
}
@@ -81,7 +81,7 @@ int32_t RenewNetDevice(NetDevice **netDev)
HDF_LOGE("%s:bad net device!", __func__);
return HDF_FAILURE;
}
if (strcpy_s(ifName, IFNAMSIZ, (*netDev)->name) < 0) {
if (strcpy_s(ifName, IFNAMSIZ, (*netDev)->name) != EOK) {
HDF_LOGE("%s:Copy ifName failed!", __func__);
return HDF_FAILURE;
}