summaryrefslogtreecommitdiff
path: root/QuarkSocPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-03-18 21:46:11 +0100
committerLaszlo Ersek <lersek@redhat.com>2016-03-25 10:52:50 +0100
commita5e5d9458af673c2524a32f35a83c1d0980ccf48 (patch)
tree471db74608a05f4236c30d2420bc25db9c36c910 /QuarkSocPkg
parent2a4d0a30a8318b7eb87754660da0f81063338444 (diff)
downloadedk2-platforms-a5e5d9458af673c2524a32f35a83c1d0980ccf48.tar.xz
QuarkSocPkg: Ohci/Pei: remove set but unused variables
Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Kelly Steele <kelly.steele@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Diffstat (limited to 'QuarkSocPkg')
-rw-r--r--QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhcPeim.c10
-rw-r--r--QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhciReg.c2
2 files changed, 0 insertions, 12 deletions
diff --git a/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhcPeim.c b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhcPeim.c
index c38d4969d8..5bb4adf3b2 100644
--- a/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhcPeim.c
+++ b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhcPeim.c
@@ -72,7 +72,6 @@ OhciControlTransfer (
UINTN LeftLength;
UINT8 DataToggle;
- UINTN ReqMapLength = 0;
EFI_PHYSICAL_ADDRESS ReqMapPhyAddr = 0;
UINTN DataMapLength = 0;
@@ -140,7 +139,6 @@ OhciControlTransfer (
// Setup Stage
//
if(Request != NULL) {
- ReqMapLength = sizeof(EFI_USB_DEVICE_REQUEST);
ReqMapPhyAddr = (EFI_PHYSICAL_ADDRESS)(UINTN)Request;
}
SetupTd = OhciCreateTD (Ohc);
@@ -356,26 +354,22 @@ OhciBulkTransfer (
{
USB_OHCI_HC_DEV *Ohc;
ED_DESCRIPTOR *Ed;
- UINT8 EdDir;
UINT32 DataPidDir;
TD_DESCRIPTOR *HeadTd;
TD_DESCRIPTOR *DataTd;
TD_DESCRIPTOR *EmptyTd;
EFI_STATUS Status;
- EFI_USB_DATA_DIRECTION TransferDirection;
UINT8 EndPointNum;
UINTN TimeCount;
UINT32 ErrorCode;
UINT8 CurrentToggle;
- VOID *Mapping;
UINTN MapLength;
EFI_PHYSICAL_ADDRESS MapPyhAddr;
UINTN LeftLength;
UINTN ActualSendLength;
BOOLEAN FirstTD;
- Mapping = NULL;
MapLength = 0;
MapPyhAddr = 0;
LeftLength = 0;
@@ -391,12 +385,8 @@ OhciBulkTransfer (
Ohc = PEI_RECOVERY_USB_OHC_DEV_FROM_EHCI_THIS (This);
if ((EndPointAddress & 0x80) != 0) {
- TransferDirection = EfiUsbDataIn;
- EdDir = ED_IN_DIR;
DataPidDir = TD_IN_PID;
} else {
- TransferDirection = EfiUsbDataOut;
- EdDir = ED_OUT_DIR;
DataPidDir = TD_OUT_PID;
}
diff --git a/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhciReg.c b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhciReg.c
index b181c3df62..bb339890c3 100644
--- a/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhciReg.c
+++ b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/OhciReg.c
@@ -97,10 +97,8 @@ OhciSetHcReset (
IN UINT32 Value
)
{
- EFI_STATUS Status;
HcRESET Reset;
- Status = EFI_SUCCESS;
*(UINT32 *) &Reset = OhciGetOperationalReg (Ohc, USBHOST_OFFSET_UHCHR);
if (Field & RESET_SYSTEM_BUS) {