From fcbe744a6f97c1d712088b867376d9a02877860c Mon Sep 17 00:00:00 2001 From: GongHui Date: Fri, 11 Sep 2020 16:57:04 +0800 Subject: [PATCH] Description: delete unused code Reviewed-by: yuanbo --- core/manager/src/devmgr_service.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/manager/src/devmgr_service.c b/core/manager/src/devmgr_service.c index 2513d4fed..2d0001aac 100755 --- a/core/manager/src/devmgr_service.c +++ b/core/manager/src/devmgr_service.c @@ -128,11 +128,6 @@ static int DevmgrServiceAttachDevice( HDF_LOGE("hostClnt is null"); return HDF_FAILURE; } - struct IDevHostService *hostService = hostClnt->hostService; - if ((hostService == NULL) || (hostClnt->deviceInfos == NULL)) { - HDF_LOGE("hostService or hostClnt->deviceInfos is null"); - return HDF_FAILURE; - } struct DeviceTokenClnt *tokenClnt = DeviceTokenClntNewInstance(token); if (tokenClnt == NULL) { HDF_LOGE("tokenClnt is null"); -- Gitee