diff --git a/adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c b/adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c index 51e39b44e39402a5eb0ab37d1f70b1ef046bd9b8..5c32dc68d859b2983594b95cc6758330f5ae40b5 100644 --- a/adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c +++ b/adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c @@ -389,7 +389,7 @@ static int32_t UsbPnpNotifyHdfSendEvent(const struct HdfDeviceObject *deviceObje OsalMutexUnlock(&deviceInfo->lock); OUT: - if ((ret != HDF_SUCCESS) || (g_usbPnpNotifyCmdType == USB_PNP_NOTIFY_REMOVE_DEVICE)) { + if (g_usbPnpNotifyCmdType == USB_PNP_NOTIFY_REMOVE_DEVICE) { if (UsbPnpNotifyDestroyInfo(deviceInfo) != HDF_SUCCESS) { HDF_LOGE("%s:%d UsbPnpNotifyDestroyInfo fail", __func__, __LINE__); }