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

2016-02-25 Thread Linus Walleij
On Tue, Feb 23, 2016 at 7:45 AM, Andrzej Hajda 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 > >

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

2016-02-25 Thread Linus Walleij
On Tue, Feb 23, 2016 at 7:45 AM, Andrzej Hajda 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

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

2016-02-22 Thread Andrzej Hajda
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 --- drivers/gpio/gpio-xgene-sb.c | 2 +- 1

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

2016-02-22 Thread Andrzej Hajda
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 --- drivers/gpio/gpio-xgene-sb.c | 2 +- 1 file changed, 1