[cairo] [PATCH 46/71] drm/intel: intel_scaled_glyph_fini(): renamed local priv variable for better consistency
Enrico Weigelt, metux IT consult
enrico.weigelt at gr13.net
Mon Apr 17 16:57:25 UTC 2017
Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt at gr13.net>
---
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 f69252ba1..e5906c38b 100644
--- a/src/drm/cairo-drm-intel.c
+++ b/src/drm/cairo-drm-intel.c
@@ -902,15 +902,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.11.0.rc0.7.gbe5a750
More information about the cairo
mailing list