diff mbox

[edk2,27/35] QuarkSocPkg: SDMediaDeviceDxe: remove set but unused variables

Message ID 1458815844-24793-28-git-send-email-lersek@redhat.com
State Accepted
Commit f87c0b5e4634379ed0e68fd0383151193f784ee2
Headers show

Commit Message

Laszlo Ersek March 24, 2016, 10:37 a.m. UTC
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>

---
 QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATA.c         | 3 ---
 QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATABlockIo.c  | 3 +--
 QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/MMCSDTransfer.c | 2 --
 3 files changed, 1 insertion(+), 7 deletions(-)

-- 
1.8.3.1


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATA.c b/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATA.c
index 0261295cbf78..42f81e7cfadd 100644
--- a/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATA.c
+++ b/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATA.c
@@ -269,12 +269,9 @@  SendATACommand (
   )
 {
   EFI_STATUS                 Status;
-  EFI_SD_HOST_IO_PROTOCOL    *SDHostIo;
   UINT8                      Data;
   UINT32                     TimeOut;
 
-  SDHostIo = CardData->SDHostIo;
-
   //
   //Write register
   //
diff --git a/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATABlockIo.c b/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATABlockIo.c
index a9addecf3984..0517b1324f23 100644
--- a/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATABlockIo.c
+++ b/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/CEATABlockIo.c
@@ -294,14 +294,13 @@  CEATABlockFlushBlocks (
   )
 {
 
-  EFI_STATUS                  Status;
   CARD_DATA                   *CardData;
 
   CardData  = CARD_DATA_FROM_THIS(This);
 
   if (CardData->NeedFlush) {
     CardData->NeedFlush = FALSE;
-    Status = FlushCache (CardData);
+    FlushCache (CardData);
   }
 
   return EFI_SUCCESS;
diff --git a/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/MMCSDTransfer.c b/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/MMCSDTransfer.c
index 5d34332b515b..d23cfa2b293d 100644
--- a/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/MMCSDTransfer.c
+++ b/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/MMCSDTransfer.c
@@ -849,12 +849,10 @@  MMCCardVoltageSelection (
   )
 {
   EFI_STATUS                 Status;
-  EFI_SD_HOST_IO_PROTOCOL    *SDHostIo;
   UINT8                      Retry;
   UINT32                     TimeOut;
 
   Status   = EFI_SUCCESS;
-  SDHostIo = CardData->SDHostIo;
   //
   //First try the high voltage, then if supported choose the low voltage
   //