mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[USBPORT] Use min(), max() macro.
This commit is contained in:
committed by
Amine Khaldi
parent
ab88f25048
commit
dd1297f0d0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user