]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Common.c
SourceLevelDebugPkg DebugUsb3: Re-Fix GCC build failures
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugCommunicationLibUsb3 / DebugCommunicationLibUsb3Common.c
index 49bad6b5864d445a6398eb3b59047738ec5e151f..3b0f81cf88fdd1578b8b16bd9c47a6f5ff0969ae 100644 (file)
@@ -852,7 +852,6 @@ DebugPortWriteBuffer (
   UINTN                     Sent;\r
   UINTN                     Total;\r
   EFI_PHYSICAL_ADDRESS      XhciMmioBase;\r
-  UINTN                     Index;\r
 \r
   if (NumberOfBytes == 0 || Buffer == NULL) {\r
     return 0;\r
@@ -895,7 +894,6 @@ DebugPortWriteBuffer (
   //\r
   DebugPortPollBuffer (Handle);\r
 \r
-  Index = 0;\r
   while ((Total < NumberOfBytes)) {\r
     if (NumberOfBytes - Total > USB3_DEBUG_PORT_WRITE_MAX_PACKET_SIZE) {\r
       Sent = USB3_DEBUG_PORT_WRITE_MAX_PACKET_SIZE;\r