[PATCH 2/7] glamor: Fix up some weird formatting in _glamor_create_fbo_array().

Eric Anholt eric at anholt.net
Tue Jun 30 15:58:09 PDT 2015


Signed-off-by: Eric Anholt <eric at anholt.net>
---
 glamor/glamor_fbo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c
index cab2ff9..acb5d0d 100644
--- a/glamor/glamor_fbo.c
+++ b/glamor/glamor_fbo.c
@@ -424,8 +424,8 @@ glamor_create_fbo_array(glamor_screen_private *glamor_priv,
 
  cleanup:
     for (i = 0; i < block_wcnt * block_hcnt; i++)
-        if ((fbo_array)[i])
-            glamor_destroy_fbo(glamor_priv, (fbo_array)[i]);
+        if (fbo_array[i])
+            glamor_destroy_fbo(glamor_priv, fbo_array[i]);
     free(box_array);
     free(fbo_array);
     return NULL;
-- 
2.1.4



More information about the xorg-devel mailing list