[PATCH 23/30] staging: mt7621-mmc: Remove initialisation in msdc_dma_config
Christian Lütke-Stetzkamp
christian at lkamp.de
Sun Apr 29 17:32:36 UTC 2018
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 at lkamp.de>
---
drivers/staging/mt7621-mmc/sd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.16.1
More information about the devel
mailing list