staging: mt7621-mmc: Remove unused field sglen from msdc_dma
The field sglen from struct msdc_dma is once set and never read, so remove it. Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
acbd652b03
commit
fe219842d6
|
@ -479,8 +479,6 @@ struct bd {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct msdc_dma {
|
struct msdc_dma {
|
||||||
u32 sglen; /* size of scatter list */
|
|
||||||
|
|
||||||
struct gpd *gpd; /* pointer to gpd array */
|
struct gpd *gpd; /* pointer to gpd array */
|
||||||
struct bd *bd; /* pointer to bd array */
|
struct bd *bd; /* pointer to bd array */
|
||||||
dma_addr_t gpd_addr; /* the physical address of gpd array */
|
dma_addr_t gpd_addr; /* the physical address of gpd array */
|
||||||
|
|
|
@ -1041,8 +1041,6 @@ static void msdc_dma_setup(struct msdc_host *host, struct msdc_dma *dma,
|
||||||
|
|
||||||
BUG_ON(sglen > MAX_BD_NUM); /* not support currently */
|
BUG_ON(sglen > MAX_BD_NUM); /* not support currently */
|
||||||
|
|
||||||
dma->sglen = sglen;
|
|
||||||
|
|
||||||
N_MSG(DMA, "DMA sglen<%d> xfersz<%d>", sglen, host->xfer_size);
|
N_MSG(DMA, "DMA sglen<%d> xfersz<%d>", sglen, host->xfer_size);
|
||||||
|
|
||||||
/* calculate the required number of gpd */
|
/* calculate the required number of gpd */
|
||||||
|
|
Loading…
Reference in a new issue