diff mbox

[10/11] tmio_mmc: drop dma_sglen state variable

Message ID AANLkTim_RROobTNT90SYm1o+QSFVsGhaa8C7fe5CoH5N@mail.gmail.com
State Accepted, archived
Headers show

Commit Message

Linus Walleij March 4, 2011, 10:27 a.m. UTC
---------- Forwarded message ----------
From: Linus Walleij <linus.walleij@linaro.org>
Date: Thu, Feb 10, 2011 at 4:10 PM
Subject: [PATCH 10/11] tmio_mmc: drop dma_sglen state variable
To: linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>
Cc: Dan Williams <dan.j.williams@intel.com>, Ian Molton
<ian@mnementh.co.uk>, Linus Walleij <linus.walleij@linaro.org>


This variable doesn't seem to be used for anything after the
other patches so just drop it.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/mmc/host/tmio_mmc.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

 #endif
@@ -826,11 +825,9 @@ static void tmio_mmc_start_dma_rx(struct
tmio_mmc_host *host)
       }

       ret = dma_map_sg(chan->device->dev, sg, host->sg_len, DMA_FROM_DEVICE);
-       if (ret > 0) {
-               host->dma_sglen = ret;
+       if (ret > 0)
               desc = chan->device->device_prep_slave_sg(chan, sg, ret,
                       DMA_FROM_DEVICE, DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
-       }

       if (desc) {
               desc->callback = tmio_dma_complete;
@@ -907,11 +904,9 @@ static void tmio_mmc_start_dma_tx(struct
tmio_mmc_host *host)
       }

       ret = dma_map_sg(chan->device->dev, sg, host->sg_len, DMA_TO_DEVICE);
-       if (ret > 0) {
-               host->dma_sglen = ret;
+       if (ret > 0)
               desc = chan->device->device_prep_slave_sg(chan, sg, ret,
                       DMA_TO_DEVICE, DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
-       }

       if (desc) {
               desc->callback = tmio_dma_complete;
--
1.7.4
diff mbox

Patch

diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c
index 5da2e17..708b3a1 100644
--- a/drivers/mmc/host/tmio_mmc.c
+++ b/drivers/mmc/host/tmio_mmc.c
@@ -152,7 +152,6 @@  struct tmio_mmc_host {
       struct tasklet_struct   dma_complete;
       struct tasklet_struct   dma_issue;
 #ifdef CONFIG_TMIO_MMC_DMA
-       unsigned int            dma_sglen;
       u8                      bounce_buf[PAGE_CACHE_SIZE]
__attribute__((aligned(MAX_ALIGN)));
       struct scatterlist      bounce_sg;