https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7ad4cf96f3a1b3c500e74…
commit 7ad4cf96f3a1b3c500e74dd0f94b4b227c5b53bd
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Wed Aug 15 12:22:02 2018 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Thu Aug 16 14:14:15 2018 +0200
[USBPORT] Remove an unnecessary check in USB2_ConvertFrame. CID 1434244
---
drivers/usb/usbport/usb2.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/usb/usbport/usb2.c b/drivers/usb/usbport/usb2.c
index 77cbd57b4b..a2c5de5816 100644
--- a/drivers/usb/usbport/usb2.c
+++ b/drivers/usb/usbport/usb2.c
@@ -739,8 +739,7 @@ USB2_ConvertFrame(IN UCHAR Frame,
*HcMicroframe = 0;
}
- if (Microframe >= 0 &&
- Microframe <= (USB2_MICROFRAMES - 2))
+ if (Microframe <= (USB2_MICROFRAMES - 2))
{
*HcFrame = Frame;
*HcMicroframe = Microframe + 1;