Mesa (main): panfrost: Remove null check in batch_cleanup

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 24 19:22:31 UTC 2021


Module: Mesa
Branch: main
Commit: 81a76d9e423be371da81be1037bfcd5811f449ba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=81a76d9e423be371da81be1037bfcd5811f449ba

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Thu Aug 12 21:10:55 2021 +0000

panfrost: Remove null check in batch_cleanup

Shouldn't happen.

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12525>

---

 src/gallium/drivers/panfrost/pan_job.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c
index 620b9d19b5d..c52d45a7d02 100644
--- a/src/gallium/drivers/panfrost/pan_job.c
+++ b/src/gallium/drivers/panfrost/pan_job.c
@@ -87,9 +87,6 @@ panfrost_batch_init(struct panfrost_context *ctx,
 static void
 panfrost_batch_cleanup(struct panfrost_batch *batch)
 {
-        if (!batch)
-                return;
-
         struct panfrost_context *ctx = batch->ctx;
         struct panfrost_device *dev = pan_device(ctx->base.screen);
 



More information about the mesa-commit mailing list