Module: Mesa
Branch: master
Commit: 709d8c29cdece86e9c629bb24c138ffd50ed26b7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=709d8c29cdece86e9c629bb24c138ffd50ed26b7

Author: Alyssa Rosenzweig <[email protected]>
Date:   Fri Dec 13 10:07:44 2019 -0500

panfrost: Handle minor cppcheck issues

Signed-off-by: Alyssa Rosenzweig <[email protected]>

---

 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);
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to