-
由 Sergio Valverde 提交于
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: NSergio Valverde <vlvrdv@gmail.com> Reviewed-by: NShawn Lin <shawn.lin@rock-chip.com> Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
b305882f