Re: [PATCH v3 04/12] gpio: rockchip: resolve underflow issue

From: Andy Shevchenko
Date: Tue Sep 03 2024 - 11:56:34 EST


On Tue, Sep 03, 2024 at 03:36:41PM +0800, Ye Zhang wrote:
> div_reg may be < 0 if debounce is zero, causing the unsigned int to
> overflow.

...

> - if (bank->gpio_type == GPIO_TYPE_V2 && !IS_ERR(bank->db_clk)) {
> + if ((bank->gpio_type == GPIO_TYPE_V2) && !IS_ERR(bank->db_clk))

Stray change.

--
With Best Regards,
Andy Shevchenko