]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/EhciPei/EhciSched.c
MdeModulePkg: Remove variables that are set, but not used
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / EhciPei / EhciSched.c
index d153aa39dc9d080fc2b805f0c521b77bfb1eccad..8e9dad12d2adef1401ee98d6f60de7db8d25b86a 100644 (file)
@@ -2,7 +2,7 @@
 PEIM to produce gPeiUsb2HostControllerPpiGuid based on gPeiUsbControllerPpiGuid\r
 which is used to enable recovery function from USB Drivers.\r
 \r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
   \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -264,7 +264,6 @@ EhcUnlinkQhFromAsync (
   )\r
 {\r
   PEI_EHC_QH              *Head;\r
-  EFI_STATUS              Status;\r
 \r
   ASSERT (Ehc->ReclaimHead->NextQh == Qh);\r
 \r
@@ -283,7 +282,7 @@ EhcUnlinkQhFromAsync (
   //\r
   // Set and wait the door bell to synchronize with the hardware\r
   //\r
-  Status = EhcSetAndWaitDoorBell (Ehc, EHC_GENERIC_TIMEOUT);\r
+  EhcSetAndWaitDoorBell (Ehc, EHC_GENERIC_TIMEOUT);\r
   \r
   return;\r
 }\r
@@ -804,8 +803,7 @@ EhcMoniteAsyncRequests (
   BOOLEAN                 Finished;\r
   UINT8                   *ProcBuf;\r
   PEI_URB                 *Urb;\r
-  EFI_STATUS              Status;\r
-  UINTN               PageNumber;\r
+  UINTN                   PageNumber;\r
 \r
   Ehc     = (PEI_USB2_HC_DEV *) Context;\r
 \r
@@ -826,7 +824,7 @@ EhcMoniteAsyncRequests (
     // Flush any PCI posted write transactions from a PCI host \r
     // bridge to system memory.\r
     //\r
-    Status = EhcFlushAsyncIntMap (Ehc, Urb);\r
+    EhcFlushAsyncIntMap (Ehc, Urb);\r
     \r
     //\r
     // Allocate a buffer then copy the transferred data for user.\r
@@ -838,11 +836,11 @@ EhcMoniteAsyncRequests (
     if (Urb->Result == EFI_USB_NOERROR) {\r
       ASSERT (Urb->Completed <= Urb->DataLen);\r
       PageNumber =  Urb->Completed/PAGESIZE +1;\r
-      Status = PeiServicesAllocatePages (\r
-                 EfiBootServicesCode,\r
-                 PageNumber,\r
-                 (EFI_PHYSICAL_ADDRESS *)ProcBuf\r
-                 );\r
+      PeiServicesAllocatePages (\r
+        EfiBootServicesCode,\r
+        PageNumber,\r
+        (EFI_PHYSICAL_ADDRESS *)ProcBuf\r
+        );\r
       if (ProcBuf == NULL) {\r
         EhcUpdateAsyncRequest (Urb);\r
         continue;\r