From 7fd7ffedfa2dca1f19cb3e9cd206a7e0fb74ffb8 Mon Sep 17 00:00:00 2001 From: sunchanglong Date: Tue, 16 Jul 2024 16:38:12 +0800 Subject: [PATCH] =?UTF-8?q?TicketNo:#IADDHV=20Description:=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E6=8A=A5=E9=94=99=20=20Signed-off-b?= =?UTF-8?q?y:=20sunchanglong=20?= 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 3ccfaf485..971a0b48e 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 @@ -216,7 +216,8 @@ OUT: static void UsbPnpNotifyAddInterfaceInitInfo(struct UsbPnpDeviceInfo *deviceInfo, union UsbPnpDeviceInfoData infoData, struct UsbPnpNotifyMatchInfoTable *infoTable) { - for (uint8_t i = 0; i < deviceInfo->info.numInfos; i++) { + uint8_t i; + for (i = 0; i < deviceInfo->info.numInfos; i++) { if ((infoData.infoData->interfaceClass == deviceInfo->info.interfaceInfo[i].interfaceClass) && (infoData.infoData->interfaceSubClass == deviceInfo->info.interfaceInfo[i].interfaceSubClass) && (infoData.infoData->interfaceProtocol == deviceInfo->info.interfaceInfo[i].interfaceProtocol) && -- Gitee