[PATCH] kms: Return a negative error code in kms_bo_create()

2012-11-02 Thread Jakob Bornecrantz
On Thu, Nov 1, 2012 at 10:38 AM, Laurent Pinchart wrote: > The function returns returns 0 on success or a negative value in case of an > error, except when given invalid attributes in which case it returns the > positive EINVAL value. Replace that with -EINVAL to allow the caller to detect >

Re: [PATCH] kms: Return a negative error code in kms_bo_create()

2012-11-02 Thread Jakob Bornecrantz
On Thu, Nov 1, 2012 at 10:38 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: The function returns returns 0 on success or a negative value in case of an error, except when given invalid attributes in which case it returns the positive EINVAL value. Replace that with -EINVAL to

[PATCH] kms: Return a negative error code in kms_bo_create()

2012-11-01 Thread Laurent Pinchart
The function returns returns 0 on success or a negative value in case of an error, except when given invalid attributes in which case it returns the positive EINVAL value. Replace that with -EINVAL to allow the caller to detect errors with a < 0 check. Signed-off-by: Laurent Pinchart ---

[PATCH] kms: Return a negative error code in kms_bo_create()

2012-11-01 Thread Laurent Pinchart
The function returns returns 0 on success or a negative value in case of an error, except when given invalid attributes in which case it returns the positive EINVAL value. Replace that with -EINVAL to allow the caller to detect errors with a 0 check. Signed-off-by: Laurent Pinchart