Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030996AbbEEItk (ORCPT ); Tue, 5 May 2015 04:49:40 -0400 Received: from terminus.zytor.com ([198.137.202.10]:48094 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030979AbbEEIt2 (ORCPT ); Tue, 5 May 2015 04:49:28 -0400 Date: Tue, 5 May 2015 01:49:07 -0700 From: tip-bot for Nicholas Mc Guire Message-ID: Cc: tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, hofrat@osadl.org Reply-To: tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, hofrat@osadl.org In-Reply-To: <1430642930-23929-1-git-send-email-hofrat@osadl.org> References: <1430642930-23929-1-git-send-email-hofrat@osadl.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] genirq: Fix unnecessary automatic type conversion Git-Commit-ID: 5e9662fa511794e1e72baf8eee21238962140480 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1416 Lines: 38 Commit-ID: 5e9662fa511794e1e72baf8eee21238962140480 Gitweb: http://git.kernel.org/tip/5e9662fa511794e1e72baf8eee21238962140480 Author: Nicholas Mc Guire AuthorDate: Sun, 3 May 2015 10:48:50 +0200 Committer: Thomas Gleixner CommitDate: Tue, 5 May 2015 10:45:58 +0200 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 Link: http://lkml.kernel.org/r/1430642930-23929-1-git-send-email-hofrat@osadl.org Signed-off-by: Thomas Gleixner --- kernel/irq/irqdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 99793b9..8228f73 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; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/