mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 17:45:06 +00:00
[USBPORT] Use min() macro.
This commit is contained in:
parent
9426d2986d
commit
18f4fc71c8
1 changed files with 1 additions and 4 deletions
|
@ -107,10 +107,7 @@ USBPORT_AllocateBandwidth(IN PDEVICE_OBJECT FdoDevice,
|
||||||
|
|
||||||
for (ix = 1; *Bandwidth >= EndpointBandwidth; ix++)
|
for (ix = 1; *Bandwidth >= EndpointBandwidth; ix++)
|
||||||
{
|
{
|
||||||
if (MinBandwidth > *Bandwidth)
|
MinBandwidth = min(MinBandwidth, *Bandwidth);
|
||||||
{
|
|
||||||
MinBandwidth = *Bandwidth;
|
|
||||||
}
|
|
||||||
|
|
||||||
Bandwidth++;
|
Bandwidth++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue