From cd41ae06497644c50346d7431c087162c8a05b36 Mon Sep 17 00:00:00 2001 From: huyx Date: Thu, 17 Apr 2025 11:26:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 1ab1c7140..87a255653 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 @@ -787,9 +787,7 @@ static int32_t UsbPnpNotifyDispatch( HDF_LOGI("%s: received cmd = %d", __func__, cmd); OsalMutexLock(&g_usbSendEventLock); - if (USB_PNP_DRIVER_GETDEVICES != cmd && USB_PNP_DRIVER_GET_GADGET_LINK_STATUS != cmd) { - g_usbPnpNotifyCmdType = cmd; - } + g_usbPnpNotifyCmdType = cmd; switch (cmd) { case USB_PNP_NOTIFY_ADD_INTERFACE: -- Gitee