genirq: Fix type inconsistency
authorNicholas Mc Guire <hofrat@osadl.org>
Sun, 3 May 2015 08:49:11 +0000 (10:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 5 May 2015 08:45:58 +0000 (10:45 +0200)
The return type of kstat_irqs_usr() is unsigned int and kstat_irqs() also
returns unsigned int so sum should be unsigned int here as well.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Link: http://lkml.kernel.org/r/1430642951-23964-1-git-send-email-hofrat@osadl.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/irqdesc.c

index 8228f7382491c5ee8a10c0e4154b2dbeab2bd96c..73a76e2ee936036f7be01e58e0d2bc46ee2ccc05 100644 (file)
@@ -639,7 +639,7 @@ unsigned int kstat_irqs(unsigned int irq)
  */
 unsigned int kstat_irqs_usr(unsigned int irq)
 {
-       int sum;
+       unsigned int sum;
 
        irq_lock_sparse();
        sum = kstat_irqs(irq);