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

From: H. Peter Anvin
Date: Thu Aug 07 2008 - 14:16:44 EST


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
--
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/