[USBPORT] Remove an unnecessary check in USBPORT_AllocateBandwidthUSB2. CID 1434261

This commit is contained in:
Thomas Faber 2018-08-15 12:49:42 +02:00
parent 7ad4cf96f3
commit db54e5eb1c
No known key found for this signature in database
GPG Key ID: 076E7C3D44720826

View File

@ -1892,11 +1892,7 @@ USBPORT_AllocateBandwidthUSB2(IN PDEVICE_OBJECT FdoDevice,
case UsbHighSpeed:
{
Tt = &FdoExtension->Usb2Extension->HcTt;
if (EndpointProperties->Period > USB2_MAX_MICROFRAMES)
Period = USB2_MAX_MICROFRAMES;
else
Period = EndpointProperties->Period;
Period = EndpointProperties->Period;
break;
}