[USBPORT] Remove an unnecessary check in USB2_ConvertFrame. CID 1434244

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

View file

@ -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;