panfrost: Remove unneeded check in panfrost_scissor_culls_everything()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 26 Jun 2019 09:16:31 +0000 (11:16 +0200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 26 Jun 2019 16:35:25 +0000 (09:35 -0700)
The ss local var is guaranteed to be != NULL. Get rid of this useless
check.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c

index f20caaad07d796f95b9c80d8ef34cb371dbecd2a..967d7116c249fc6260f150336230c8507d9f6110 100644 (file)
@@ -1600,7 +1600,7 @@ panfrost_scissor_culls_everything(struct panfrost_context *ctx)
 
         /* Check if we're scissoring at all */
 
-        if (!(ss && ctx->rasterizer && ctx->rasterizer->base.scissor))
+        if (!(ctx->rasterizer && ctx->rasterizer->base.scissor))
                 return false;
 
         return (ss->minx == ss->maxx) || (ss->miny == ss->maxy);