[Spice-devel] [PATCH 2/7] change main_channel_marshall_mouse_mode call style

Jonathon Jongsma jjongsma at redhat.com
Fri May 20 21:16:57 UTC 2016


From: Frediano Ziglio <fziglio at redhat.com>

Make the call more similar to other marshall function calls in the
same function.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/main-channel-client.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/server/main-channel-client.c b/server/main-channel-client.c
index 02b701f..19510e3 100644
--- a/server/main-channel-client.c
+++ b/server/main-channel-client.c
@@ -866,12 +866,9 @@ void main_channel_client_send_item(RedChannelClient *rcc, RedPipeItem *base)
                 SPICE_CONTAINEROF(base, RedPingPipeItem, base));
             break;
         case RED_PIPE_ITEM_TYPE_MAIN_MOUSE_MODE:
-            {
-                RedMouseModePipeItem *item =
-                    SPICE_CONTAINEROF(base, RedMouseModePipeItem, base);
-                main_channel_marshall_mouse_mode(rcc, m, item);
-                break;
-            }
+            main_channel_marshall_mouse_mode(rcc, m,
+                SPICE_CONTAINEROF(base, RedMouseModePipeItem, base));
+            break;
         case RED_PIPE_ITEM_TYPE_MAIN_AGENT_DISCONNECTED:
             main_channel_marshall_agent_disconnected(rcc, m, base);
             break;
-- 
2.4.11



More information about the Spice-devel mailing list