Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acbd652b authored by Christian Lütke-Stetzkamp's avatar Christian Lütke-Stetzkamp Committed by Greg Kroah-Hartman
Browse files

staging: mt7621-mmc: Remove unused field sg from msdc_dma



The field sg from struct msdc_dma is once set and never read, so
remove it.

Signed-off-by: default avatarChristian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8cfba8ac
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -480,7 +480,6 @@ struct bd {

struct msdc_dma {
	u32 sglen;                   /* size of scatter list */
	struct scatterlist *sg;      /* I/O scatter list */

	struct gpd *gpd;                  /* pointer to gpd array */
	struct bd  *bd;                   /* pointer to bd array */
+0 −1
Original line number Diff line number Diff line
@@ -1041,7 +1041,6 @@ static void msdc_dma_setup(struct msdc_host *host, struct msdc_dma *dma,

	BUG_ON(sglen > MAX_BD_NUM); /* not support currently */

	dma->sg = sg_cmd;
	dma->sglen = sglen;

	N_MSG(DMA, "DMA sglen<%d> xfersz<%d>", sglen, host->xfer_size);