From b08bfaed3f14bbaa365083acc4b0a980d94294b3 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 5 Feb 2019 12:53:19 +0100 Subject: [PATCH] renderer: drop unused ctx-argument This argument is unused, and the function is not a part of the external API, so there's little point in passing it just to discard it again. Signed-off-by: Erik Faye-Lund Reviewed-by: Gurchetan Singh --- src/vrend_renderer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index fb37aaf..6ddf770 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -6698,8 +6698,7 @@ static int vrend_transfer_send_readpixels(struct vrend_context *ctx, return 0; } -static int vrend_transfer_send_readonly(UNUSED struct vrend_context *ctx, - struct vrend_resource *res, +static int vrend_transfer_send_readonly(struct vrend_resource *res, struct iovec *iov, int num_iovs, UNUSED const struct vrend_transfer_info *info) { @@ -6763,7 +6762,7 @@ static int vrend_renderer_transfer_send_iov(struct vrend_context *ctx, if (can_readpixels) { ret = vrend_transfer_send_readpixels(ctx, res, iov, num_iovs, info); } else { - ret = vrend_transfer_send_readonly(ctx, res, iov, num_iovs, info); + ret = vrend_transfer_send_readonly(res, iov, num_iovs, info); } /* Can hit this on a non-error path as well. */