From 709d8c29cdece86e9c629bb24c138ffd50ed26b7 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 13 Dec 2019 10:07:44 -0500 Subject: [PATCH] panfrost: Handle minor cppcheck issues Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 1 - src/gallium/drivers/panfrost/pan_fragment.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index c310ab5d45b..8bfa6de476e 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2555,7 +2555,6 @@ struct pipe_context * panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags) { struct panfrost_context *ctx = rzalloc(screen, struct panfrost_context); - struct panfrost_screen *pscreen = pan_screen(screen); struct pipe_context *gallium = (struct pipe_context *) ctx; gallium->screen = screen; diff --git a/src/gallium/drivers/panfrost/pan_fragment.c b/src/gallium/drivers/panfrost/pan_fragment.c index c03df51fafa..438294926fd 100644 --- a/src/gallium/drivers/panfrost/pan_fragment.c +++ b/src/gallium/drivers/panfrost/pan_fragment.c @@ -54,7 +54,7 @@ panfrost_fragment_job(struct panfrost_batch *batch, bool has_draws, { struct panfrost_screen *screen = pan_screen(batch->ctx->base.screen); - mali_ptr framebuffer = screen->quirks & MIDGARD_SFBD ? + mali_ptr framebuffer = (screen->quirks & MIDGARD_SFBD) ? panfrost_sfbd_fragment(batch, has_draws) : panfrost_mfbd_fragment(batch, has_draws); -- 2.30.2