virgl: drop needless return-code
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 5 Sep 2018 12:58:35 +0000 (13:58 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 10 Sep 2018 08:35:20 +0000 (10:35 +0200)
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-lund@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/virgl_texture.c

index 71c0e9da7fdafc7749a712b0e0ca6ab0ead29bfe..2cee4126652d942cd0bee2a5ef0e53c67ab7c05f 100644 (file)
@@ -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,