diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2015-05-03 10:49:11 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-05-05 10:45:58 +0200 |
commit | 7df0b278385df3c8d0606c620e6ab1e9eea3d9cd (patch) | |
tree | 32d18cc7ff177d0ad4ccd98bb51257dfe83b1b7c /kernel/irq/irqdesc.c | |
parent | genirq: Fix unnecessary automatic type conversion (diff) | |
download | linux-7df0b278385df3c8d0606c620e6ab1e9eea3d9cd.tar.xz linux-7df0b278385df3c8d0606c620e6ab1e9eea3d9cd.zip |
genirq: Fix type inconsistency
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>
Diffstat (limited to 'kernel/irq/irqdesc.c')
-rw-r--r-- | kernel/irq/irqdesc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 8228f7382491..73a76e2ee936 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -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); |