mirror of
https://github.com/reactos/reactos.git
synced 2025-04-12 00:29:04 +00:00
[USBPORT] Correcting check Period.
This commit is contained in:
parent
dd1297f0d0
commit
c86210e800
1 changed files with 2 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#include "usbport.h"
|
#include "usbport.h"
|
||||||
|
|
||||||
//#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
|
@ -2104,8 +2104,6 @@ USBPORT_FreeBandwidthUSB2(IN PDEVICE_OBJECT FdoDevice,
|
||||||
FdoExtension = FdoDevice->DeviceExtension;
|
FdoExtension = FdoDevice->DeviceExtension;
|
||||||
|
|
||||||
Period = Endpoint->EndpointProperties.Period;
|
Period = Endpoint->EndpointProperties.Period;
|
||||||
ASSERT(Period != 0);
|
|
||||||
|
|
||||||
ScheduleOffset = Endpoint->EndpointProperties.ScheduleOffset;
|
ScheduleOffset = Endpoint->EndpointProperties.ScheduleOffset;
|
||||||
EndpointBandwidth = Endpoint->EndpointProperties.UsbBandwidth;
|
EndpointBandwidth = Endpoint->EndpointProperties.UsbBandwidth;
|
||||||
|
|
||||||
|
@ -2132,6 +2130,7 @@ USBPORT_FreeBandwidthUSB2(IN PDEVICE_OBJECT FdoDevice,
|
||||||
|
|
||||||
RtlZeroMemory(Rebalance, sizeof(USB2_REBALANCE));
|
RtlZeroMemory(Rebalance, sizeof(USB2_REBALANCE));
|
||||||
|
|
||||||
|
ASSERT(Period != 0);
|
||||||
Factor = USB2_FRAMES / Period;
|
Factor = USB2_FRAMES / Period;
|
||||||
n = ScheduleOffset * Factor;
|
n = ScheduleOffset * Factor;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue