[USBPORT] Use min() macro.

This commit is contained in:
Vadim Galyant 2018-01-11 01:31:47 +09:00 committed by Amine Khaldi
parent 9426d2986d
commit 18f4fc71c8

View file

@ -107,10 +107,7 @@ USBPORT_AllocateBandwidth(IN PDEVICE_OBJECT FdoDevice,
for (ix = 1; *Bandwidth >= EndpointBandwidth; ix++)
{
if (MinBandwidth > *Bandwidth)
{
MinBandwidth = *Bandwidth;
}
MinBandwidth = min(MinBandwidth, *Bandwidth);
Bandwidth++;