summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci-iproc.c
diff options
context:
space:
mode:
authorSergio Valverde <vlvrdv@gmail.com>2018-02-08 11:41:43 -0600
committerUlf Hansson <ulf.hansson@linaro.org>2018-03-05 09:01:00 +0100
commitb305882fbc878f10ad089348da147987c330a2ee (patch)
tree31fb0bcde41b9216f7288d69b45a49e19b8a6fd9 /drivers/mmc/host/sdhci-iproc.c
parent5a871bf081dd7915ed7b9942a5484ff0c742e2cc (diff)
mmc: core: optimize mmc_calc_max_discard
If the max_discard value is zero, the conditional branch that checks the trim capabilities will never update this value with max_trim. Change the condition statement to also check the max_discard value in order to avoid an unnecessary call to mmc_do_calc_max_discard. Signed-off-by: Sergio Valverde <vlvrdv@gmail.com> Reviewed-by: Shawn Lin <shawn.lin@rock-chip.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-iproc.c')
0 files changed, 0 insertions, 0 deletions