@@ -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;
}
@@ -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,
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> --- MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c | 4 ---- MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c | 7 +------ 2 files changed, 1 insertion(+), 10 deletions(-) -- 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel