Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754196Ab0ATTtx (ORCPT ); Wed, 20 Jan 2010 14:49:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754168Ab0ATTtv (ORCPT ); Wed, 20 Jan 2010 14:49:51 -0500 Received: from hera.kernel.org ([140.211.167.34]:46244 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754156Ab0ATTtt (ORCPT ); Wed, 20 Jan 2010 14:49:49 -0500 Message-ID: <4B575E35.2050204@kernel.org> Date: Wed, 20 Jan 2010 11:49:09 -0800 From: Yinghai Lu User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091130 SUSE/3.0.0-1.1.1 Thunderbird/3.0 MIME-Version: 1.0 To: Christoph Lameter CC: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Jesse Barnes , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 29/37] sparseirq: change irq_desc_ptrs to static References: <1263611228-6751-1-git-send-email-yinghai@kernel.org> <1263611228-6751-30-git-send-email-yinghai@kernel.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 597 Lines: 19 On 01/19/2010 10:01 AM, Christoph Lameter wrote: > On Fri, 15 Jan 2010, Yinghai Lu wrote: > >> +void replace_irq_desc(unsigned int irq, struct irq_desc *desc) >> +{ >> + if (irq_desc_ptrs && irq < nr_irqs) >> + irq_desc_ptrs[irq] = desc; >> +} > > Why is it now ok to specify an out of range irq number? ok, will remove this unneeded checking. YH -- 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/