diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-10-20 05:49:21 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-10 06:40:41 -0500 |
commit | 9e304d67ad4768585e4c7002341aac81272799ec (patch) | |
tree | 41a222ca7129ca251bf2b8bbae82c925b4351a10 | |
parent | 56d09b1da7dbe18bdb4e4a74df4a00ab95e6aecd (diff) |
mmc: core: Remove redundant check of max_dtr while selecting timings
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>
-rw-r--r-- | drivers/mmc/core/mmc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index c0f21eb56eec..cc9f4599f3e1 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c | |||
@@ -1157,8 +1157,7 @@ static int mmc_select_timing(struct mmc_card *card) | |||
1157 | { | 1157 | { |
1158 | int err = 0; | 1158 | int err = 0; |
1159 | 1159 | ||
1160 | if ((card->csd.mmca_vsn < CSD_SPEC_VER_4 && | 1160 | if (card->csd.mmca_vsn < CSD_SPEC_VER_4) |
1161 | card->ext_csd.hs_max_dtr == 0)) | ||
1162 | goto bus_speed; | 1161 | goto bus_speed; |
1163 | 1162 | ||
1164 | if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200) | 1163 | if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200) |