diff --git a/core/manager/src/devmgr_service.c b/core/manager/src/devmgr_service.c index 2513d4fed7035f0b7a75a58a16c7815d5643804a..2d0001aacd9962580edbd2a559aef69521d1d39c 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");