Skip to content

Commit

Permalink
mmc: dw_mmc: minor cleanup for dw_mci_adjust_fifoth
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Lin authored and Ulf Hansson committed Sep 26, 2016
1 parent cc190d4 commit 2075356
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]) ||
Expand Down

0 comments on commit 2075356

Please sign in to comment.