RE: [PATCH v2 1/2] clk:Fix divide-by-zero in divider_ro_round_rate_parent

2019-03-30 Thread Nixiaoming
On 3/30/2019 5:44 PM, Mukesh Ojha wrote: >On 3/30/2019 8:01 AM, nixiaoming wrote: >> In the function divider_recalc_rate() The judgment of the return value of >> _get_div() indicates that the return value of _get_div() may be 0. > >s/may be/can be Thank you for your comments. I will fix it in a la

Re: [PATCH v2 1/2] clk:Fix divide-by-zero in divider_ro_round_rate_parent

2019-03-30 Thread Mukesh Ojha
On 3/30/2019 8:01 AM, nixiaoming wrote: In the function divider_recalc_rate() The judgment of the return value of _get_div() indicates that the return value of _get_div() may be 0. s/may be/can be In order to avoid the divide-by-zero error, add check the return values. s/add check the/add

[PATCH v2 1/2] clk:Fix divide-by-zero in divider_ro_round_rate_parent

2019-03-29 Thread nixiaoming
In the function divider_recalc_rate() The judgment of the return value of _get_div() indicates that the return value of _get_div() may be 0. In order to avoid the divide-by-zero error, add check the return value of _get_div() in the divider_ro_round_rate_parent() Signed-off-by: nixiaoming --- dr