From: Alyssa Rosenzweig Date: Fri, 13 Dec 2019 15:07:44 +0000 (-0500) Subject: panfrost: Handle minor cppcheck issues X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=709d8c29cdece86e9c629bb24c138ffd50ed26b7;p=mesa.git panfrost: Handle minor cppcheck issues Signed-off-by: Alyssa Rosenzweig --- 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);