From eb7b0a9344afe278a91396c917da8f18709aed7f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20L=C3=BCtke-Stetzkamp?= Date: Sun, 29 Apr 2018 19:32:30 +0200 Subject: [PATCH] staging: mt7621-mmc: Remove unused variable dma_xfer from msdc_host MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The field dma_xfer of the struct msdc_host is not used anymore, remove it. Signed-off-by: Christian Lütke-Stetzkamp Signed-off-by: Greg Kroah-Hartman --- drivers/staging/mt7621-mmc/mt6575_sd.h | 1 - drivers/staging/mt7621-mmc/sd.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/mt7621-mmc/mt6575_sd.h b/drivers/staging/mt7621-mmc/mt6575_sd.h index 195c7333f77d..aa7e9c250e02 100644 --- a/drivers/staging/mt7621-mmc/mt6575_sd.h +++ b/drivers/staging/mt7621-mmc/mt6575_sd.h @@ -922,7 +922,6 @@ struct msdc_host { struct msdc_dma dma; /* dma channel */ u32 dma_xfer_size; /* dma transfer size in bytes */ - int dma_xfer; /* dma transfer mode */ u32 timeout_ns; /* data timeout ns */ u32 timeout_clks; /* data timeout clks */ diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c index 95b5db80250a..44d75f3f2c3e 100644 --- a/drivers/staging/mt7621-mmc/sd.c +++ b/drivers/staging/mt7621-mmc/sd.c @@ -603,7 +603,7 @@ static void msdc_abort_data(struct msdc_host *host) void __iomem *base = host->base; struct mmc_command *stop = host->mrq->stop; - ERR_MSG("Need to Abort. dma<%d>", host->dma_xfer); + ERR_MSG("Need to Abort."); msdc_reset_hw(host); msdc_clr_fifo(); -- 2.34.1