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 3ccfaf4853d6a3ba5b32e8a089aff9448a483db3..971a0b48ec625940b66c3f86ca5144423d9ef67b 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) &&