[Spice-devel] [PATCH spice-server] dcc: Reuse display variable
Frediano Ziglio
fziglio at redhat.com
Fri Aug 25 12:36:51 UTC 2017
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
More information about the Spice-devel
mailing list