summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2016-04-12 13:25:07 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2016-05-02 10:33:28 +0200
commitd310ae4936ccf1186851692c511483c794dd7701 (patch)
tree6a6314a26e8e910d247ca9a4d7c680c3063107f2 /drivers/mmc/host/sdhci.c
parentmmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for Broxton controllers (diff)
downloadlinux-d310ae4936ccf1186851692c511483c794dd7701.tar.xz
linux-d310ae4936ccf1186851692c511483c794dd7701.zip
mmc: sdhci: Remove redundant condition
The logic '!mmc.f_max || (mmc.f_max && mmc.f_max > max_clk)' is equivalent to '!mmc.f_max || mmc.f_max > max_clk'. Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to '')
-rw-r--r--drivers/mmc/host/sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index dd1efed09be0..73edf44ad1ac 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3002,7 +3002,7 @@ int sdhci_add_host(struct sdhci_host *host)
} else
mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_200;
- if (!mmc->f_max || (mmc->f_max && (mmc->f_max > max_clk)))
+ if (!mmc->f_max || mmc->f_max > max_clk)
mmc->f_max = max_clk;
if (!(host->quirks & SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK)) {