svga: update call to u_upload_alloc()
authorBrian Paul <brianp@vmware.com>
Thu, 3 Sep 2015 17:23:36 +0000 (11:23 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Sep 2015 17:24:24 +0000 (11:24 -0600)
u_upload_alloc() no longer returns a return value.

Trivial.

src/gallium/drivers/svga/svga_state_constants.c

index e0bbe013c02ac062a4f9af62612aa23fcbfe62cf..b6d6de0dca329fd486244d4cb3c1dcd42872c9e5 100644 (file)
@@ -613,9 +613,9 @@ emit_constbuf_vgpu10(struct svga_context *svga, unsigned shader)
     */
    new_buf_size = align(new_buf_size, 16);
 
-   ret = u_upload_alloc(svga->const0_upload, 0, new_buf_size, &offset,
-                        &dst_buffer, &dst_map);
-   if (ret != PIPE_OK || !dst_map) {
+   u_upload_alloc(svga->const0_upload, 0, new_buf_size, &offset,
+                  &dst_buffer, &dst_map);
+   if (!dst_map) {
       if (src_map)
          pipe_buffer_unmap(&svga->pipe, src_transfer);
       return PIPE_ERROR_OUT_OF_MEMORY;