[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210517105432.1682-1-zbestahu@gmail.com>
Date: Mon, 17 May 2021 18:54:32 +0800
From: Yue Hu <zbestahu@...il.com>
To: chaotian.jing@...iatek.com, ulf.hansson@...aro.org,
matthias.bgg@...il.com
Cc: linux-mmc@...r.kernel.org, linux-mediatek@...ts.infradead.org,
linux-kernel@...r.kernel.org, huyue2@...ong.com, zbestahu@....com
Subject: [PATCH] mmc: mediatek: remove useless data parameter from msdc_data_xfer_next()
From: Yue Hu <huyue2@...ong.com>
We do not use the 'data' in msdc_data_xfer_next().
Signed-off-by: Yue Hu <huyue2@...ong.com>
---
drivers/mmc/host/mtk-sd.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index c4db944..4dfc246 100644
--- a/drivers/mmc/host/mtk-sd.c
+++ b/drivers/mmc/host/mtk-sd.c
@@ -1347,8 +1347,7 @@ static void msdc_post_req(struct mmc_host *mmc, struct mmc_request *mrq,
}
}
-static void msdc_data_xfer_next(struct msdc_host *host,
- struct mmc_request *mrq, struct mmc_data *data)
+static void msdc_data_xfer_next(struct msdc_host *host, struct mmc_request *mrq)
{
if (mmc_op_multi(mrq->cmd->opcode) && mrq->stop && !mrq->stop->error &&
!mrq->sbc)
@@ -1407,7 +1406,7 @@ static bool msdc_data_xfer_done(struct msdc_host *host, u32 events,
(int)data->error, data->bytes_xfered);
}
- msdc_data_xfer_next(host, mrq, data);
+ msdc_data_xfer_next(host, mrq);
done = true;
}
return done;
--
1.9.1
Powered by blists - more mailing lists