From 276e7e5a2291dccf3dd03700d8d899e337d6fe1c 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, 10 Jun 2021 16:36:20 +0800 Subject: [PATCH] update core/common/src/hdf_attribute.c. --- core/common/src/hdf_attribute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/common/src/hdf_attribute.c b/core/common/src/hdf_attribute.c index 83b609fd2..60489352f 100644 --- a/core/common/src/hdf_attribute.c +++ b/core/common/src/hdf_attribute.c @@ -310,8 +310,7 @@ bool HdfDeviceListAdd(const char *moduleName, const char *serviceName) if (deviceInfo->moduleName == NULL) { continue; } - if (strcmp(deviceInfo->moduleName, moduleName) == 0) { - deviceInfo->isDynamic = true; + if (strcmp(deviceInfo->moduleName, moduleName) == 0) { deviceNodeInfo->hostId = deviceInfo->hostId; deviceNodeInfo->deviceId = hostClnt->devCount; deviceNodeInfo->policy = deviceInfo->policy; @@ -330,6 +329,7 @@ bool HdfDeviceListAdd(const char *moduleName, const char *serviceName) break; } deviceNodeInfo->svcName = svcName; + deviceNodeInfo->isDynamic = true; HdfSListAdd(hostClnt->deviceInfos, &deviceNodeInfo->node); hostClnt->devCount++; return true; -- Gitee