Re: [PATCH] Fix i2c_use_client()

From: Greg KH
Date: Tue Mar 09 2004 - 18:37:56 EST


On Sun, Mar 07, 2004 at 04:13:41PM +0000, Russell King wrote:
> i2c_use_client() contains a bogosity. If i2c_inc_use_client() returns
> success, i2c_use_client() returns an error. If i2c_inc_use_client()
> fails, i2c_use_client() might succeed.
>
> Fix it so that (a) we get the correct sense between these two functions,
> and (b) propagate the error code from i2c_inc_use_client(), rather than
> making our own one up.

Nice, thanks. I've applied this.

greg k-h
-
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/