From: Andrzej Hajda Date: Tue, 23 Feb 2016 06:45:34 +0000 (+0100) Subject: gpio: xgene: fix type of variable containing error codes X-Git-Tag: v4.9.8~2493^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d34607d11d7c72a201715e720048ca5eee613706;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c index b993b86..fd81ebc 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;