svga: Don't return value from void function.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 25 Nov 2015 13:34:18 +0000 (13:34 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Fri, 27 Nov 2015 14:14:25 +0000 (14:14 +0000)
Addresses MSVC warning C4098: 'svga_destroy_query' : 'void' function
returning a value.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/svga/svga_pipe_query.c

index 5416a009dcb34c37bac11355bb630ce40cd87323..3859050bf18d46139b10b71a60e186342e97e068 100644 (file)
@@ -754,7 +754,8 @@ svga_destroy_query(struct pipe_context *pipe, struct pipe_query *q)
    struct svga_query *sq;
 
    if (q == NULL) {
-      return destroy_gb_query_obj(svga);
+      destroy_gb_query_obj(svga);
+      return;
    }
 
    sq = svga_query(q);