Re: [patch 1/2] resources: clean up pnp_irq() error return

2013-11-07 Thread Takashi Iwai
At Thu, 7 Nov 2013 11:17:49 +0300, Dan Carpenter wrote: > > pnp_irq() returns -1 on error but cast to an unsigned. It is confusing > for callers who assume that it returns a negative value. I have > introduced a new define IORESOURCE_INVALID which is the same value but > hopefully it looks less

[patch 1/2] resources: clean up pnp_irq() error return

2013-11-07 Thread Dan Carpenter
pnp_irq() returns -1 on error but cast to an unsigned. It is confusing for callers who assume that it returns a negative value. I have introduced a new define IORESOURCE_INVALID which is the same value but hopefully it looks less like a negative value. Signed-off-by: Dan Carpenter diff --git a