Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: tmio_mmc: drop dma_sglen state variable

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>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Linus Walleij and committed by
Chris Ball
3383433c d7554caa

+2 -7
+2 -7
drivers/mmc/host/tmio_mmc.c
··· 152 152 struct tasklet_struct dma_complete; 153 153 struct tasklet_struct dma_issue; 154 154 #ifdef CONFIG_TMIO_MMC_DMA 155 - unsigned int dma_sglen; 156 155 u8 bounce_buf[PAGE_CACHE_SIZE] __attribute__((aligned(MAX_ALIGN))); 157 156 struct scatterlist bounce_sg; 158 157 #endif ··· 829 830 } 830 831 831 832 ret = dma_map_sg(chan->device->dev, sg, host->sg_len, DMA_FROM_DEVICE); 832 - if (ret > 0) { 833 - host->dma_sglen = ret; 833 + if (ret > 0) 834 834 desc = chan->device->device_prep_slave_sg(chan, sg, ret, 835 835 DMA_FROM_DEVICE, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); 836 - } 837 836 838 837 if (desc) { 839 838 desc->callback = tmio_dma_complete; ··· 908 911 } 909 912 910 913 ret = dma_map_sg(chan->device->dev, sg, host->sg_len, DMA_TO_DEVICE); 911 - if (ret > 0) { 912 - host->dma_sglen = ret; 914 + if (ret > 0) 913 915 desc = chan->device->device_prep_slave_sg(chan, sg, ret, 914 916 DMA_TO_DEVICE, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); 915 - } 916 917 917 918 if (desc) { 918 919 desc->callback = tmio_dma_complete;