summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorShawn Lin2016-09-21 04:40:25 +0200
committerUlf Hansson2016-09-26 21:31:37 +0200
commit207535698e7dbbeebddce2dbe9dfbecb55b4e999 (patch)
tree31936cdcad608407d1e6e48bbc5da378e8022788 /drivers/mmc/host
parentmmc: dw_mmc: use macro to define ring buffer size (diff)
downloadkernel-qcow2-linux-207535698e7dbbeebddce2dbe9dfbecb55b4e999.tar.gz
kernel-qcow2-linux-207535698e7dbbeebddce2dbe9dfbecb55b4e999.tar.xz
kernel-qcow2-linux-207535698e7dbbeebddce2dbe9dfbecb55b4e999.zip
mmc: dw_mmc: minor cleanup for dw_mci_adjust_fifoth
msize and rx_wmark are properly initialized, we dont't need to assign them again. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/dw_mmc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 84cf60e6390c..8ee1c86b6eff 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -939,11 +939,8 @@ static void dw_mci_adjust_fifoth(struct dw_mci *host, struct mmc_data *data)
* MSIZE is '1',
* if blksz is not a multiple of the FIFO width
*/
- if (blksz % fifo_width) {
- msize = 0;
- rx_wmark = 1;
+ if (blksz % fifo_width)
goto done;
- }
do {
if (!((blksz_depth % mszs[idx]) ||