[Spice-commits] server/cursor-channel.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Thu May 26 15:38:13 UTC 2016
server/cursor-channel.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit a95251c30b0123f7e5d764aee2ea52c23bb14c4c
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Thu May 26 12:10:12 2016 +0100
Remove useless double conversion
Avoid converting RedChannelClient* to CursorChannelClient* and then
CursorChannelClient* to RedChannelClient* just to use RedChannelClient*.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Uri Lublin <uril at redhat.com>
diff --git a/server/cursor-channel.c b/server/cursor-channel.c
index ea5441c..05fcc83 100644
--- a/server/cursor-channel.c
+++ b/server/cursor-channel.c
@@ -366,10 +366,7 @@ CursorChannel* cursor_channel_new(RedWorker *worker)
void cursor_channel_client_migrate(RedChannelClient *rcc)
{
- CursorChannelClient* client = (CursorChannelClient*)rcc;
-
- spice_return_if_fail(client);
- rcc = RED_CHANNEL_CLIENT(client);
+ spice_return_if_fail(rcc);
red_channel_client_pipe_add_type(rcc, RED_PIPE_ITEM_TYPE_INVAL_CURSOR_CACHE);
red_channel_client_default_migrate(rcc);
More information about the Spice-commits
mailing list