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 <erik.faye-l...@collabora.com>
---
 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 71c0e9da7f..2cee412665 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.17.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to