]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: xgene: fix type of variable containing error codes
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 23 Feb 2016 06:45:34 +0000 (07:45 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Feb 2016 10:00:03 +0000 (11:00 +0100)
commit4bdb7274ee5e7fe5699ce9347f11cd43e889b009
tree4a7177767062397b9713c74c2c45745feabff3a7
parent44c48424b206952adccad56622e8906ce1c62922
gpio: xgene: fix type of variable containing error codes

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@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xgene-sb.c