Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030254AbWJ2VE1 (ORCPT ); Sun, 29 Oct 2006 16:04:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030259AbWJ2VE1 (ORCPT ); Sun, 29 Oct 2006 16:04:27 -0500 Received: from einhorn.in-berlin.de ([192.109.42.8]:13490 "EHLO einhorn.in-berlin.de") by vger.kernel.org with ESMTP id S1030254AbWJ2VE0 (ORCPT ); Sun, 29 Oct 2006 16:04:26 -0500 X-Envelope-From: stefanr@s5r6.in-berlin.de Date: Sun, 29 Oct 2006 22:04:17 +0100 (CET) From: Stefan Richter Subject: [PATCH 2.6.19-rc3] i386/io_apic: fix compiler warning in create_irq To: Ingo Molnar cc: linux-kernel@vger.kernel.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-Disposition: INLINE Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1083 Lines: 29 Fix warning arch/i386/kernel/io_apic.c: In function `create_irq': arch/i386/kernel/io_apic.c:2420: warning: 'vector' might be used uninitialized in this function Signed-off-by: Stefan Richter --- Only compile-tested. arch/x86_64/kernel/io_apic.c seems to have the same initialization already. Index: linux-2.6.19-rc3/arch/i386/kernel/io_apic.c =================================================================== --- linux-2.6.19-rc3.orig/arch/i386/kernel/io_apic.c 2006-10-29 20:41:20.000000000 +0100 +++ linux-2.6.19-rc3/arch/i386/kernel/io_apic.c 2006-10-29 21:55:19.000000000 +0100 @@ -2421,6 +2421,7 @@ int create_irq(void) unsigned long flags; irq = -ENOSPC; + vector = 0; spin_lock_irqsave(&vector_lock, flags); for (new = (NR_IRQS - 1); new >= 0; new--) { if (platform_legacy_irq(new)) - 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/