summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2016-02-23 09:45:34 +0300
committerLinus Walleij <linus.walleij@linaro.org>2016-02-25 17:20:45 +0300
commitd34607d11d7c72a201715e720048ca5eee613706 (patch)
treef542bb5e5d875eb4ab39dfffd58937f253b35eb4
parent2af66e1dece9fb92a7ef7a270f58a72b82491363 (diff)
downloadlinux-d34607d11d7c72a201715e720048ca5eee613706.tar.xz
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>
-rw-r--r--drivers/gpio/gpio-xgene-sb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c
index b993b86958ed..fd81ebc8d365 100644
--- a/drivers/gpio/gpio-xgene-sb.c
+++ b/drivers/gpio/gpio-xgene-sb.c
@@ -240,7 +240,7 @@ static const struct irq_domain_ops xgene_gpio_sb_domain_ops = {
static int xgene_gpio_sb_probe(struct platform_device *pdev)
{
struct xgene_gpio_sb *priv;
- u32 ret;
+ int ret;
struct resource *res;
void __iomem *regs;
struct irq_domain *parent_domain = NULL;