[PATCH] pinctrl: nsp-gpio: fix type of iterator

Linus Walleij linus.walleij at linaro.org
Thu Dec 24 01:03:59 PST 2015


On Wed, Dec 23, 2015 at 11:37 AM, Andrzej Hajda <a.hajda at samsung.com> wrote:

> Iterator i declared as unsigned is always non-negative so the
> loop will never end.
>
> The problem has been detected using proposed semantic patch
> scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].
>
> [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576
>
> Signed-off-by: Andrzej Hajda <a.hajda at samsung.com>

I already applied Dan Carpenters fix, somehow it was earlier
in my mail flow. Thanks anyways!

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list