Mesa (master): nvc0: remove useless goto in nvc0_launch_grid()
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Mon Jan 11 23:20:30 UTC 2016
Module: Mesa
Branch: master
Commit: 3029d60de7244ed8c460ad8ee2408d27ed494a6b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3029d60de7244ed8c460ad8ee2408d27ed494a6b
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Tue Jan 12 00:11:06 2016 +0100
nvc0: remove useless goto in nvc0_launch_grid()
Trivial.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nvc0/nvc0_compute.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c b/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
index 2e7c790..9d4606f 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
@@ -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");
}
More information about the mesa-commit
mailing list