aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-mmc
diff options
context:
space:
mode:
authorChristian Lütke-Stetzkamp <christian@lkamp.de>2018-04-29 19:32:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-06 19:08:07 -0700
commit96a9789306bed9babd00c9e65265f3cbcb049af2 (patch)
tree8d3f7449c6c06a65b6558eab8db213227acc1e0f /drivers/staging/mt7621-mmc
parentstaging: mt7621-mmc: Remove redundant check for card status (diff)
downloadlinux-dev-96a9789306bed9babd00c9e65265f3cbcb049af2.tar.xz
linux-dev-96a9789306bed9babd00c9e65265f3cbcb049af2.zip
staging: mt7621-mmc: Remove initialisation in msdc_dma_config
Current code initialises the variable sg at the beginning of the msdc_dma_config function. This is not necessary, because the variable is assigned by the for_each_sg macro later on. Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-mmc')
-rw-r--r--drivers/staging/mt7621-mmc/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c
index a2dce54e386c..c9f0180f3220 100644
--- a/drivers/staging/mt7621-mmc/sd.c
+++ b/drivers/staging/mt7621-mmc/sd.c
@@ -1091,7 +1091,7 @@ static int msdc_dma_config(struct msdc_host *host, struct msdc_dma *dma)
void __iomem *base = host->base;
//u32 i, j, num, bdlen, arg, xfersz;
u32 j, num;
- struct scatterlist *sg = dma->sg;
+ struct scatterlist *sg;
struct gpd *gpd;
struct bd *bd;