mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-28 16:29:56 +00:00
Remove useless double conversion
Avoid converting RedChannelClient* to CursorChannelClient* and then CursorChannelClient* to RedChannelClient* just to use RedChannelClient*. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
parent
8f7419a711
commit
a95251c30b
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user