]> 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 14:20:45 +0000 (15:20 +0100)
commit9606f42026038e9790cc1a7841d2066990274ea0
treef542bb5e5d875eb4ab39dfffd58937f253b35eb4
parente5cfc4ec64df1331827e688d7a7b633325ca12d6
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