Re: [PATCH 1/2] gpio: xgene: fix type of variable containing error codes

From: Linus Walleij
Date: Thu Feb 25 2016 - 05:00:37 EST


On Tue, Feb 23, 2016 at 7:45 AM, Andrzej Hajda <a.hajda@xxxxxxxxxxx> wrote:

> ret variable can contain error values and is compared with zero.
> Its type must be signed.
>
> The problem has been detected using coccinelle script
> scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci
>
> Signed-off-by: Andrzej Hajda <a.hajda@xxxxxxxxxxx>

Patch applied as obviously correct.

Yours,
Linus Walleij