From: Shawn Lin Date: Wed, 21 Sep 2016 02:40:25 +0000 (+0800) Subject: mmc: dw_mmc: minor cleanup for dw_mci_adjust_fifoth X-Git-Tag: v4.14-rc1~2371^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=207535698e7dbbeebddce2dbe9dfbecb55b4e999;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jaehoon Chung Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 84cf60e..8ee1c86 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]) ||