mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-08-26 18:17:07 -04:00
!785 clear codex framework drivers
Merge pull request !785 from 王有刚/OpenHarmony-3.1-Release
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user