Re: [PATCH v2] pwm: bcm-iproc: handle clk_get_rate() return

From: Uwe Kleine-KÃnig
Date: Fri Jul 17 2020 - 19:04:43 EST


On Fri, Jul 17, 2020 at 11:25:12AM -0700, Scott Branden wrote:
> From: Rayagonda Kokatanur <rayagonda.kokatanur@xxxxxxxxxxxx>
>
> Handle clk_get_rate() returning <= 0 condition to avoid
> possible division by zero.

You advertise handling <= 0, but in the code only == 0 is checked. One
of the two is wrong ...

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |

Attachment: signature.asc
Description: PGP signature