https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fd5beb559374007e51747…
commit fd5beb559374007e51747917cdb09828ff970927
Author: Vadim Galyant <vgal(a)rambler.ru>
AuthorDate: Thu Jan 11 03:18:17 2018 +0900
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sun Jan 21 19:35:59 2018 +0100
[USBPORT] Moving array CMASKS[] to start file.
---
drivers/usb/usbport/usb2.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/usbport/usb2.c b/drivers/usb/usbport/usb2.c
index 4de18b7b12..cc833e308f 100644
--- a/drivers/usb/usbport/usb2.c
+++ b/drivers/usb/usbport/usb2.c
@@ -10,6 +10,10 @@
#define NDEBUG
#include <debug.h>
+static const UCHAR CMASKS[USB2_MICROFRAMES] = {
+ 0x1C, 0x38, 0x70, 0xE0, 0xC1, 0x83, 0x07, 0x0E
+};
+
BOOLEAN
NTAPI
USB2_AllocateCheck(IN OUT PULONG OutTimeUsed,
@@ -792,9 +796,6 @@ USB2_GetCMASK(IN PUSB2_TT_ENDPOINT TtEndpoint)
UCHAR HcFrame;
UCHAR HcMicroFrame;
UCHAR MaskCS = 0;
- static const UCHAR CMASKS[USB2_MICROFRAMES] = {
- 0x1C, 0x38, 0x70, 0xE0, 0xC1, 0x83, 0x07, 0x0E
- };
TransferType = TtEndpoint->TtEndpointParams.TransferType;
DeviceSpeed = TtEndpoint->TtEndpointParams.DeviceSpeed;