mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[USBPORT] Use min(), max() macro.
This commit is contained in:
parent
ab88f25048
commit
dd1297f0d0
1 changed files with 2 additions and 5 deletions
|
@ -1821,11 +1821,8 @@ USBPORT_UpdateAllocatedBwTt(IN PUSB2_TT_EXTENSION TtExtension)
|
|||
{
|
||||
NewBusBandwidth = BusBandwidth - TtExtension->Bandwidth[ix];
|
||||
|
||||
if (NewBusBandwidth > MaxBusBandwidth)
|
||||
MaxBusBandwidth = NewBusBandwidth;
|
||||
|
||||
if (NewBusBandwidth < MinBusBandwidth)
|
||||
MinBusBandwidth = NewBusBandwidth;
|
||||
MaxBusBandwidth = max(MaxBusBandwidth, NewBusBandwidth);
|
||||
MinBusBandwidth = min(MinBusBandwidth, NewBusBandwidth);
|
||||
}
|
||||
|
||||
TtExtension->MaxBandwidth = MaxBusBandwidth;
|
||||
|
|
Loading…
Reference in a new issue