panfrost: Remove unneeded check in panfrost_scissor_culls_everything()

Submitted by Boris Brezillon on June 26, 2019, 9:16 a.m.

Details

Message ID 20190626091631.26289-1-boris.brezillon@collabora.com
State New
Headers show
Series "panfrost: Remove unneeded check in panfrost_scissor_culls_everything()" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Boris Brezillon June 26, 2019, 9:16 a.m.
The ss local var is guaranteed to be != NULL. Get rid of this useless
check.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
---
 src/gallium/drivers/panfrost/pan_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index c1075c6693e8..f3768240e7ad 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -1675,7 +1675,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);

Comments