Re: [PATCH] device_for_each_child(): kill pointless warning noise

From: Andrew Morton
Date: Wed Sep 27 2006 - 21:42:36 EST

On Wed, 27 Sep 2006 21:05:18 -0400
Jeff Garzik <jeff@xxxxxxxxxx> wrote:

> As the last patch demonstrated, it is quite valid for a caller to ignore
> the return value of device_for_each_child(), given that the return value
> is wholly dependent on the actor -- which in practice often has a
> hardcoded return value.

Yes, but almost all of the instances which you found are flat-out *wrong*.
They're returning 0 or 1 at random places in the callchain because they're
calling intermediate void-returning functions which are themselves dropping
error codes on the floor instead of returning them.

Let no error go unhandled!
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at