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 f20caaa..967d711 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);