summaryrefslogtreecommitdiffstats
path: root/kernel/irq
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-05-03 10:48:50 +0200
committerThomas Gleixner <tglx@linutronix.de>2015-05-05 10:45:58 +0200
commit5e9662fa511794e1e72baf8eee21238962140480 (patch)
tree461b5604ae9e16834d6e64a8afd7cf5899b6bad5 /kernel/irq
parent9600973656c697d742e31d202e6212216ea45a3e (diff)
downloadlinux-5e9662fa511794e1e72baf8eee21238962140480.tar.gz
linux-5e9662fa511794e1e72baf8eee21238962140480.tar.bz2
linux-5e9662fa511794e1e72baf8eee21238962140480.zip
genirq: Fix unnecessary automatic type conversion
kstat_irqs is unsigned int and the return type of kstat_irqs() is also unsigned int so sum should be unsigned int as well even if the result is correct due to automatic type conversion. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Link: http://lkml.kernel.org/r/1430642930-23929-1-git-send-email-hofrat@osadl.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/irqdesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 99793b9b6d23..8228f7382491 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -619,7 +619,7 @@ unsigned int kstat_irqs(unsigned int irq)
{
struct irq_desc *desc = irq_to_desc(irq);
int cpu;
- int sum = 0;
+ unsigned int sum = 0;
if (!desc || !desc->kstat_irqs)
return 0;