fosphor/cl: Fix return type/value of cl_queue_clear_buffers

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2017-04-22 11:53:35 +02:00
parent b06234e0fc
commit f5e8890139
1 changed files with 2 additions and 2 deletions

View File

@ -387,7 +387,7 @@ error:
return NULL;
}
static int
static cl_int
cl_queue_clear_buffers(struct fosphor *self)
{
struct fosphor_cl_state *cl = self->cl;
@ -441,7 +441,7 @@ cl_queue_clear_buffers(struct fosphor *self)
/* Need to finish because our patterns are on the stack */
clFinish(cl->cq);
return 0;
return CL_SUCCESS;
/* Error path */
error: