mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 06:56:43 +07:00
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>
This commit is contained in:
parent
706e86e9de
commit
d310ae4936
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user