Re: [PATCH 29/37] sparseirq: change irq_desc_ptrs to static

From: Yinghai Lu
Date: Wed Jan 20 2010 - 14:49:58 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/