summaryrefslogtreecommitdiffstats
path: root/QuarkSocPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-03-18 21:44:16 +0100
committerLaszlo Ersek <lersek@redhat.com>2016-03-25 10:52:49 +0100
commit2a4d0a30a8318b7eb87754660da0f81063338444 (patch)
tree7f4675bed76d0e4bc307e036248ff13632b38690 /QuarkSocPkg
parentf87c0b5e4634379ed0e68fd0383151193f784ee2 (diff)
downloadedk2-2a4d0a30a8318b7eb87754660da0f81063338444.tar.gz
edk2-2a4d0a30a8318b7eb87754660da0f81063338444.tar.bz2
edk2-2a4d0a30a8318b7eb87754660da0f81063338444.zip
QuarkSocPkg: Ohci/Dxe: 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/Dxe/Ohci.c9
-rw-r--r--QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/OhciReg.c5
2 files changed, 1 insertions, 13 deletions
diff --git a/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/Ohci.c b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/Ohci.c
index f73a09bf4c..e19d4d8253 100644
--- a/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/Ohci.c
+++ b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/Ohci.c
@@ -637,13 +637,11 @@ OhciBulkTransfer(
USB_OHCI_HC_DEV *Ohc;
ED_DESCRIPTOR *HeadEd;
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;
OHCI_ED_RESULT EdResult;
@@ -672,13 +670,9 @@ OhciBulkTransfer(
Ohc = USB_OHCI_HC_DEV_FROM_THIS (This);
if ((EndPointAddress & 0x80) != 0) {
- TransferDirection = EfiUsbDataIn;
- EdDir = ED_IN_DIR;
DataPidDir = TD_IN_PID;
MapOp = EfiPciIoOperationBusMasterWrite;
} else {
- TransferDirection = EfiUsbDataOut;
- EdDir = ED_OUT_DIR;
DataPidDir = TD_OUT_PID;
MapOp = EfiPciIoOperationBusMasterRead;
}
@@ -941,7 +935,6 @@ OhciInterruptTransfer (
EFI_STATUS Status;
UINT8 EndPointNum;
UINT32 DataPidDir;
- EFI_USB_DATA_DIRECTION TransferDirection;
INTERRUPT_CONTEXT_ENTRY *Entry;
EFI_TPL OldTpl;
BOOLEAN FirstTD;
@@ -959,11 +952,9 @@ OhciInterruptTransfer (
}
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/Dxe/OhciReg.c b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/OhciReg.c
index 09f591d858..ae6412ad65 100644
--- a/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/OhciReg.c
+++ b/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/OhciReg.c
@@ -33,9 +33,8 @@ OhciGetOperationalReg (
)
{
UINT32 Value;
- EFI_STATUS Status;
- Status = PciIo->Mem.Read(PciIo, EfiPciIoWidthUint32, OHC_BAR_INDEX, Offset, 1, &Value);
+ PciIo->Mem.Read(PciIo, EfiPciIoWidthUint32, OHC_BAR_INDEX, Offset, 1, &Value);
return Value;
}
@@ -102,10 +101,8 @@ OhciSetHcReset (
IN UINT32 Value
)
{
- EFI_STATUS Status;
HcRESET Reset;
- Status = EFI_SUCCESS;
*(UINT32 *) &Reset = OhciGetOperationalReg (Ohc->PciIo, USBHOST_OFFSET_UHCHR);
if (Field & RESET_SYSTEM_BUS) {