Re: [PATCH 00/33] dyn_array and nr_irqs support v4

H. Peter Anvin
2008-08-07T18:16:40Z

Yinghai Lu wrote:
>
> #ifndef CONFIG_HAVE_SPARSE_IRQ
> #define valid_irq(irq) ((irq) > 0 && (irq) < nr_irqs)
> #else
> #define valid_irq(irq) ((irq) > 0)
>
> anyway why 0 is invalid instead of -1U...?
>

Because 0 is easier to understand to a user when specifying in a module
option.

-hpa