[USBPORT] Moving array CMASKS[] to start file.
authorVadim Galyant <vgal@rambler.ru>
Wed, 10 Jan 2018 18:18:17 +0000 (03:18 +0900)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 21 Jan 2018 18:35:59 +0000 (19:35 +0100)
drivers/usb/usbport/usb2.c

index 4de18b7..cc833e3 100644 (file)
 #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;