From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752423AbbHBUip (ORCPT ); Sun, 2 Aug 2015 16:38:45 -0400 Received: from www.linutronix.de ([62.245.132.108]:58490 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644AbbHBUil (ORCPT ); Sun, 2 Aug 2015 16:38:41 -0400 Message-Id: <20150802203609.385495420@linutronix.de> User-Agent: quilt/0.63-1 Date: Sun, 02 Aug 2015 20:38:24 -0000 From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Jiang Liu , Peter Zijlstra , Rusty Russell , Bjorn Helgaas Subject: [patch 3/7] x86/irq: Replace numeric constant References: <20150802203427.110728870@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=x86-irq--Replace-numeric-constant X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the proper define instead of 0. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: tip/arch/x86/kernel/irq.c =================================================================== --- tip.orig/arch/x86/kernel/irq.c +++ tip/arch/x86/kernel/irq.c @@ -419,8 +419,8 @@ int check_irq_vectors_for_cpu_disable(vo for (vector = FIRST_EXTERNAL_VECTOR; vector < first_system_vector; vector++) { if (!test_bit(vector, used_vectors) && - per_cpu(vector_irq, cpu)[vector] < 0) - count++; + per_cpu(vector_irq, cpu)[vector] <= VECTOR_UNDEFINED) + count++; } }