summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-03-18 20:29:15 +0100
committerLaszlo Ersek <lersek@redhat.com>2016-03-25 10:52:26 +0100
commit59ddab7e6e7397736f89355ccbaa2e1817992fec (patch)
treed314f59bf3f9cc9653d3c1ca7327300f1b85370c /MdeModulePkg
parentc1df8b889d4a9d8316d707e3ba8728f2628d5788 (diff)
downloadedk2-platforms-59ddab7e6e7397736f89355ccbaa2e1817992fec.tar.xz
MdeModulePkg: UfsPassThruDxe: remove set but unused variables
Cc: Feng Tian <feng.tian@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Ruiyu Ni <ruiyu.ni@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: Star Zeng <star.zeng@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c4
-rw-r--r--MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c7
2 files changed, 1 insertions, 10 deletions
diff --git a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
index bfba7aafe8..7c831e92d0 100644
--- a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
+++ b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
@@ -605,10 +605,6 @@ UfsPassThruGetNextTarget (
IN OUT UINT8 **Target
)
{
- UFS_PASS_THRU_PRIVATE_DATA *Private;
-
- Private = UFS_PASS_THRU_PRIVATE_DATA_FROM_THIS (This);
-
if (Target == NULL || *Target == NULL) {
return EFI_INVALID_PARAMETER;
}
diff --git a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
index a9fde3066f..26986cbf26 100644
--- a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
+++ b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
@@ -1431,7 +1431,6 @@ UfsExecScsiCmds (
UINTN MapLength;
EDKII_UFS_HOST_CONTROLLER_PROTOCOL *UfsHc;
EDKII_UFS_HOST_CONTROLLER_OPERATION Flag;
- UFS_DATA_DIRECTION DataDirection;
UTP_TR_PRD *PrdtBase;
EFI_TPL OldTpl;
UFS_PASS_THRU_TRANS_REQ *TransReq;
@@ -1475,18 +1474,14 @@ UfsExecScsiCmds (
if (Packet->DataDirection == EFI_EXT_SCSI_DATA_DIRECTION_READ) {
DataBuf = Packet->InDataBuffer;
DataLen = Packet->InTransferLength;
- DataDirection = UfsDataIn;
Flag = EdkiiUfsHcOperationBusMasterWrite;
} else {
DataBuf = Packet->OutDataBuffer;
DataLen = Packet->OutTransferLength;
- DataDirection = UfsDataOut;
Flag = EdkiiUfsHcOperationBusMasterRead;
}
- if (DataLen == 0) {
- DataDirection = UfsNoData;
- } else {
+ if (DataLen != 0) {
MapLength = DataLen;
Status = UfsHc->Map (
UfsHc,