radv/ws: get rid of useless return value
authorDave Airlie <airlied@redhat.com>
Thu, 18 Jan 2018 01:37:59 +0000 (01:37 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Jan 2018 01:57:53 +0000 (01:57 +0000)
This also used boolean, so nice to kill that.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c

index 0ee56f91447cabef6207a41ba2f1be473382ac45..5632b1d4ee2cf814ba7c9104b3c51b4b1fb5f74c 100644 (file)
@@ -175,14 +175,13 @@ static void radv_amdgpu_cs_destroy(struct radeon_winsys_cs *rcs)
        free(cs);
 }
 
-static boolean radv_amdgpu_init_cs(struct radv_amdgpu_cs *cs,
-                                  enum ring_type ring_type)
+static void radv_amdgpu_init_cs(struct radv_amdgpu_cs *cs,
+                               enum ring_type ring_type)
 {
        for (int i = 0; i < ARRAY_SIZE(cs->buffer_hash_table); ++i)
                cs->buffer_hash_table[i] = -1;
 
        cs->hw_ip = ring_to_hw_ip(ring_type);
-       return true;
 }
 
 static struct radeon_winsys_cs *