nvc0: remove useless goto in nvc0_launch_grid()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 11 Jan 2016 23:11:06 +0000 (00:11 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 11 Jan 2016 23:19:34 +0000 (00:19 +0100)
Trivial.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_compute.c

index 2e7c790e9eec9c466798ac4d6cc2bad1261199b8..9d4606fa2ec88d2c6c3c5ace98e51b2a6dd6e338 100644 (file)
@@ -195,8 +195,10 @@ nvc0_launch_grid(struct pipe_context *pipe,
    int ret;
 
    ret = !nvc0_compute_state_validate(nvc0);
-   if (ret)
-      goto out;
+   if (ret) {
+      NOUVEAU_ERR("Failed to launch grid !\n");
+      return;
+   }
 
    nvc0_compute_upload_input(nvc0, input);
 
@@ -253,8 +255,4 @@ nvc0_launch_grid(struct pipe_context *pipe,
    }
    memset(nvc0->state.uniform_buffer_bound, 0,
           sizeof(nvc0->state.uniform_buffer_bound));
-
-out:
-   if (ret)
-      NOUVEAU_ERR("Failed to launch grid !\n");
 }