From: Erik Faye-Lund Date: Wed, 5 Sep 2018 12:58:35 +0000 (+0100) Subject: virgl: drop needless return-code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9c40e492dd587e64c81b4f0c501751721fdf65e;p=mesa.git 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 --- 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,