Skip to content

Commit

Permalink
mmc: core: Remove redundant check of max_dtr while selecting timings
Browse files Browse the repository at this point in the history
If the MMC spec version is < CSD_SPEC_VER_4, there aren't support for
the EXT_CSD register. Since max_dtr is fetched from there, it will
default to zero, which thus isn't needed to verify.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Ulf Hansson committed Nov 10, 2014
1 parent 56d09b1 commit 9e304d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mmc/core/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,8 +1157,7 @@ static int mmc_select_timing(struct mmc_card *card)
{
int err = 0;

if ((card->csd.mmca_vsn < CSD_SPEC_VER_4 &&
card->ext_csd.hs_max_dtr == 0))
if (card->csd.mmca_vsn < CSD_SPEC_VER_4)
goto bus_speed;

if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200)
Expand Down

0 comments on commit 9e304d6

Please sign in to comment.