From a9813fd53459950c3823194b5ee0f95f27342e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E9=92=A6=E8=A1=97?= <15390014138@163.com> Date: Sat, 5 Jun 2021 17:31:33 +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