Re: [patch 09/15] PNP: make resource assignment functions return 0 (success) or -EBUSY (failure)

Rene Herman
2008-06-01T21:55:58Z

On 31-05-08 00:49, Bjorn Helgaas wrote:

> This patch doesn't change any behavior; it just makes the return
> values more conventional.
>
> This changes pnp_assign_dma() from a void function to one that
> returns an int, just like the other assignment functions. For
> now, at least, pnp_assign_dma() always returns 0 (success), so
> it appears to never fail, just like before.
>
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

Acked-by: Rene Herman <rene.herman@gmail.com>

I believe it would a bit nicer to (as long as we're pretending it
matters in the first place) pass the return value back up from
pnp_check_foo() instead of returning -EBUSY always but <shrug>

Rene.