From: Thomas Faber Date: Wed, 15 Aug 2018 10:22:02 +0000 (+0200) Subject: [USBPORT] Remove an unnecessary check in USB2_ConvertFrame. CID 1434244 X-Git-Tag: 0.4.11-dev~135 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=7ad4cf96f3a1b3c500e74dd0f94b4b227c5b53bd;ds=sidebyside [USBPORT] Remove an unnecessary check in USB2_ConvertFrame. CID 1434244 --- diff --git a/drivers/usb/usbport/usb2.c b/drivers/usb/usbport/usb2.c index 77cbd57b4b8..a2c5de58163 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;