Skip to content
Commit aa4afdf0 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Jerome Glisse
Browse files

kms: Return a negative error code in kms_bo_create()



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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarJakob Bornecrantz <wallbraker@gmail.com>
parent 9fa4a4b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment