[Spice-commits] server/dcc.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Mar 21 11:33:40 UTC 2019
server/dcc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 7988d2fe12ea319d294460be92ccfebd1bb3dd50
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Thu Mar 21 11:19:13 2019 +0100
dcc: Remove a redundant NULL pointer check in dcc_create_surface()
dcc_create_surface() already returns immediately if dcc is NULL.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/dcc.c b/server/dcc.c
index ae7b4380..53d52531 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -303,8 +303,7 @@ void dcc_create_surface(DisplayChannelClient *dcc, int surface_id)
flags = is_primary_surface(display, surface_id) ? SPICE_SURFACE_FLAGS_PRIMARY : 0;
/* don't send redundant create surface commands to client */
- if (!dcc ||
- common_graphics_channel_get_during_target_migrate(COMMON_GRAPHICS_CHANNEL(display)) ||
+ if (common_graphics_channel_get_during_target_migrate(COMMON_GRAPHICS_CHANNEL(display)) ||
dcc->priv->surface_client_created[surface_id]) {
return;
}
More information about the Spice-commits
mailing list