Re: [PATCH v2] mmc: core: optimize mmc_calc_max_discard

2018-02-14 Thread Ulf Hansson
On 8 February 2018 at 18:41, Sergio Valverde wrote: > 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

Re: [PATCH v2] mmc: core: optimize mmc_calc_max_discard

2018-02-14 Thread Ulf Hansson
On 8 February 2018 at 18:41, Sergio Valverde wrote: > 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