diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2016-04-12 13:25:07 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-05-02 10:33:28 +0200 |
commit | d310ae4936ccf1186851692c511483c794dd7701 (patch) | |
tree | 6a6314a26e8e910d247ca9a4d7c680c3063107f2 /drivers/mmc/host/sdhci.c | |
parent | mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for Broxton controllers (diff) | |
download | linux-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.c | 2 |
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)) { |