[PATCH 14/41] drm/intel: intel_scaled_glyph_fini(): renamed local priv variable for better consistency

"Enrico Weigelt, metux IT consult" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]>
---
 src/drm/cairo-drm-intel.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/drm/cairo-drm-intel.c b/src/drm/cairo-drm-intel.c
index a3bca03..525bb24 100644
--- a/src/drm/cairo-drm-intel.c
+++ b/src/drm/cairo-drm-intel.c
@@ -965,15 +965,12 @@ void
 intel_scaled_glyph_fini (cairo_scaled_glyph_t *scaled_glyph,
 			 cairo_scaled_font_t  *scaled_font)
 {
-    intel_glyph_t *glyph;
-
-    glyph = scaled_glyph->surface_private;
-    if (glyph != NULL) {
-	/* XXX thread-safety? Probably ok due to the frozen scaled-font. */
-	glyph->node.owner = NULL;
-	if (! glyph->node.pinned)
-	    _cairo_rtree_node_remove (&glyph->cache->rtree, &glyph->node);
-    }
+    intel_glyph_t *priv = scaled_glyph->surface_private;
+
+    /* XXX thread-safety? Probably ok due to the frozen scaled-font. */
+    priv->node.owner = NULL;
+    if (! priv->node.pinned)
+	_cairo_rtree_node_remove (&priv->cache->rtree, &priv->node);
 }
 
 void
-- 
2.6.4.442.g545299f

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.