panfrost: Handle minor cppcheck issues
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 13 Dec 2019 15:07:44 +0000 (10:07 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 13 Dec 2019 15:26:35 +0000 (10:26 -0500)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_fragment.c

index c310ab5d45bf2f36f048596f0b9f6626d2c5f796..8bfa6de476eef4b9b3b10cb1d4bd350a4d831ed6 100644 (file)
@@ -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;
index c03df51fafa61000d1ee63aef9a0a70ca4b65fe0..438294926fd2e019bce8bf07dbef2526fad31c5f 100644 (file)
@@ -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);