]> git.karo-electronics.de Git - linux-beck.git/commitdiff
irqchip: keystone: Remove warning unsigned 'kirq->irq' is never less than zero
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 28 Aug 2014 17:16:29 +0000 (20:16 +0300)
committerJason Cooper <jason@lakedaemon.net>
Wed, 3 Sep 2014 11:48:44 +0000 (11:48 +0000)
Remove static checker warning:

drivers/irqchip/irq-keystone.c:166 keystone_irq_probe()
warn: unsigned 'kirq->irq' is never less than zero.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Link: https://lkml.kernel.org/r/1409246189-29727-1-git-send-email-grygorii.strashko@ti.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-keystone.c

index fea26bcfd4ea4c6b5ea1ae64ecb1ffba9c227fd1..608abf9c9283d6c5a9203ab6f77ddc0480617919 100644 (file)
@@ -36,7 +36,7 @@ struct keystone_irq_device {
        struct device           *dev;
        struct irq_chip          chip;
        u32                      mask;
-       u32                      irq;
+       int                      irq;
        struct irq_domain       *irqd;
        struct regmap           *devctrl_regs;
        u32                     devctrl_offset;