aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fosphor/cl.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2017-04-22 11:53:35 +0200
committerSylvain Munaut <tnt@246tNt.com>2019-11-30 20:55:37 +0100
commitf5e8890139176bbbdcdb094037b64653e8ef0437 (patch)
tree840d6ae813f57538dfbcca6c95e0b6a3cd6a9760 /lib/fosphor/cl.c
parentb06234e0fc73e28d2ff1a596c5df8b3935792113 (diff)
fosphor/cl: Fix return type/value of cl_queue_clear_buffers
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'lib/fosphor/cl.c')
-rw-r--r--lib/fosphor/cl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fosphor/cl.c b/lib/fosphor/cl.c
index bd4bc09..257f750 100644
--- a/lib/fosphor/cl.c
+++ b/lib/fosphor/cl.c
@@ -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: