https://git.reactos.org/?p=reactos.git;a=commitdiff;h=18f4fc71c85ac817d224d6b5b30b4742a2e71cba
commit 18f4fc71c85ac817d224d6b5b30b4742a2e71cba Author: Vadim Galyant <v...@rambler.ru> AuthorDate: Thu Jan 11 01:31:47 2018 +0900 Commit: Amine Khaldi <amine.kha...@reactos.org> CommitDate: Sun Jan 21 19:35:57 2018 +0100 [USBPORT] Use min() macro. --- drivers/usb/usbport/endpoint.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/usbport/endpoint.c b/drivers/usb/usbport/endpoint.c index 8bf9ca9cf7..e599e87b50 100644 --- a/drivers/usb/usbport/endpoint.c +++ b/drivers/usb/usbport/endpoint.c @@ -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++;