[Spice-devel] [PATCH spice-server] dcc: Reuse display variable

Christophe Fergeau cfergeau at redhat.com
Fri Aug 25 13:31:48 UTC 2017


Sure,

Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Fri, Aug 25, 2017 at 01:36:51PM +0100, Frediano Ziglio wrote:
> display variable already contains the DCC_TO_DC(dcc) value so
> reuse it.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/dcc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/dcc.c b/server/dcc.c
> index 4490507b..2778bb88 100644
> --- a/server/dcc.c
> +++ b/server/dcc.c
> @@ -297,7 +297,7 @@ void dcc_create_surface(DisplayChannelClient *dcc, int surface_id)
>      }
>  
>      display = DCC_TO_DC(dcc);
> -    flags = is_primary_surface(DCC_TO_DC(dcc), surface_id) ? SPICE_SURFACE_FLAGS_PRIMARY : 0;
> +    flags = is_primary_surface(display, surface_id) ? SPICE_SURFACE_FLAGS_PRIMARY : 0;
>  
>      /* don't send redundant create surface commands to client */
>      if (!dcc ||
> -- 
> 2.13.5
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list