From b9c40e492dd587e64c81b4f0c501751721fdf65e Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 5 Sep 2018 13:58:35 +0100 Subject: [PATCH] virgl: drop needless return-code We always return TRUE, and we never check the return-value. Let's just drop the return value instead. Signed-off-by: Erik Faye-Lund Reviewed-by: Dave Airlie --- src/gallium/drivers/virgl/virgl_texture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c index 71c0e9da7fd..2cee4126652 100644 --- a/src/gallium/drivers/virgl/virgl_texture.c +++ b/src/gallium/drivers/virgl/virgl_texture.c @@ -240,7 +240,7 @@ static void virgl_texture_transfer_unmap(struct pipe_context *ctx, } -static boolean +static void vrend_resource_layout(struct virgl_texture *res, uint32_t *total_size) { @@ -276,7 +276,6 @@ vrend_resource_layout(struct virgl_texture *res, *total_size = buffer_size; else /* don't create guest backing store for MSAA */ *total_size = 0; - return TRUE; } static boolean virgl_texture_get_handle(struct pipe_screen *screen, -- 2.30.2