https://git.reactos.org/?p=reactos.git;a=commitdiff;h=db54e5eb1c6283d098999…
commit db54e5eb1c6283d098999046a56c7b6021b70040
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Wed Aug 15 12:49:42 2018 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Thu Aug 16 14:14:23 2018 +0200
[USBPORT] Remove an unnecessary check in USBPORT_AllocateBandwidthUSB2. CID 1434261
---
drivers/usb/usbport/usb2.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/usb/usbport/usb2.c b/drivers/usb/usbport/usb2.c
index a2c5de5816..e41a7c0620 100644
--- a/drivers/usb/usbport/usb2.c
+++ b/drivers/usb/usbport/usb2.c
@@ -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;
}