[PATCH 1/2] xrandr: Inline RRInitOutputPropertyValue called from single place

Mikhail Gusarov dottedmag at dottedmag.net
Sun Jun 6 07:18:37 PDT 2010


Signed-off-by: Mikhail Gusarov <dottedmag at dottedmag.net>
---
 randr/rrproperty.c |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index c4dcb1a..97e063c 100644
--- a/randr/rrproperty.c
+++ b/randr/rrproperty.c
@@ -89,15 +89,6 @@ RRDeleteAllOutputProperties(RROutputPtr output)
     }
 }
 
-static void
-RRInitOutputPropertyValue (RRPropertyValuePtr property_value)
-{
-    property_value->type = None;
-    property_value->format = 0;
-    property_value->size = 0;
-    property_value->data = NULL;
-}
-
 static RRPropertyPtr
 RRCreateOutputProperty (Atom property)
 {
@@ -356,8 +347,11 @@ RRConfigureOutputProperty (RROutputPtr output, Atom property,
      */
     if (prop->is_pending && !pending)
     {
-	free(prop->pending.data);
-	RRInitOutputPropertyValue (&prop->pending);
+        free(prop->pending.data);
+        property_value->type = None;
+        property_value->format = 0;
+        property_value->size = 0;
+        property_value->data = NULL;
     }
 
     prop->is_pending = pending;
-- 
1.7.1



More information about the xorg-devel mailing list