From e44cd746b4cd3c1dfb808c7c4b30f17e75ebd11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E9=92=A6=E8=A1=97?= <15390014138@163.com> Date: Thu, 20 May 2021 21:41:37 +0800 Subject: [PATCH] update core/host/src/devhost_service.c. --- core/host/src/devhost_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/host/src/devhost_service.c b/core/host/src/devhost_service.c index 52cc53908..15ebde7a0 100644 --- a/core/host/src/devhost_service.c +++ b/core/host/src/devhost_service.c @@ -125,7 +125,7 @@ int DevHostServiceDelDevice(struct IDevHostService *inst, const struct HdfDevice return HDF_FAILURE; } - device = DevHostServiceGetDevice(hostService, deviceInfo->deviceId); + device = DevHostServiceFindDevice(hostService, deviceInfo->deviceId); if (device == NULL) { HDF_LOGW("failed to del device, device is not exist"); return HDF_SUCCESS; -- Gitee