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

Matt Turner mattst88 at gmail.com
Sun Jun 6 07:40:19 PDT 2010


On Sun, Jun 6, 2010 at 10:18 AM, Mikhail Gusarov
<dottedmag at dottedmag.net> wrote:
> 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
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>

Reviewed-by: Matt Turner <mattst88 at gmail.com>


More information about the xorg-devel mailing list